mirror of
https://github.com/khrysse/khrysse.github.io.git
synced 2025-06-27 14:41:54 +00:00
Update SEO
This commit is contained in:
parent
87d1ec763c
commit
49989989a5
@ -24,6 +24,7 @@
|
|||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
import LangBadge from '$lib/components/ui/LangBadge.svelte'; // adapte selon ton dossier
|
import LangBadge from '$lib/components/ui/LangBadge.svelte'; // adapte selon ton dossier
|
||||||
import { formatDistanceToNow } from 'date-fns';
|
import { formatDistanceToNow } from 'date-fns';
|
||||||
|
import MetaSeo from '$lib/components/MetaSEO.svelte';
|
||||||
|
|
||||||
let dataRepo = {
|
let dataRepo = {
|
||||||
repository: null,
|
repository: null,
|
||||||
@ -80,8 +81,16 @@
|
|||||||
onMount(() => {
|
onMount(() => {
|
||||||
fetchData();
|
fetchData();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const formattedUsername = username.charAt(0).toUpperCase() + username.slice(1).toLowerCase();
|
||||||
|
const formattedRepository = repo.charAt(0).toUpperCase() + repo.slice(1).toLowerCase();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<MetaSeo
|
||||||
|
title={`${formattedRepository} — Repository Details - ${formattedUsername} (@${username})`}
|
||||||
|
description={`Explore the ${formattedUsername}/${formattedRepository} repository on GitHub. Discover its features, contributors, and more.`}
|
||||||
|
/>
|
||||||
|
|
||||||
{#if error}
|
{#if error}
|
||||||
<div class="mb-6 rounded bg-red-600 p-4 text-white">
|
<div class="mb-6 rounded bg-red-600 p-4 text-white">
|
||||||
⚠️ {error} — Try again later, you may have exceeded the GitHub API limit without a token.
|
⚠️ {error} — Try again later, you may have exceeded the GitHub API limit without a token.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user