1
0
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:
Kryscau 2025-06-09 03:26:58 +02:00
parent 87d1ec763c
commit 49989989a5

View File

@ -24,6 +24,7 @@
import { onMount } from 'svelte';
import LangBadge from '$lib/components/ui/LangBadge.svelte'; // adapte selon ton dossier
import { formatDistanceToNow } from 'date-fns';
import MetaSeo from '$lib/components/MetaSEO.svelte';
let dataRepo = {
repository: null,
@ -80,8 +81,16 @@
onMount(() => {
fetchData();
});
const formattedUsername = username.charAt(0).toUpperCase() + username.slice(1).toLowerCase();
const formattedRepository = repo.charAt(0).toUpperCase() + repo.slice(1).toLowerCase();
</script>
<MetaSeo
title={`${formattedRepository} — Repository Details - ${formattedUsername} (@${username})`}
description={`Explore the ${formattedUsername}/${formattedRepository} repository on GitHub. Discover its features, contributors, and more.`}
/>
{#if error}
<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.