From 56d4498e330e0e22fef508d9d7e2d7cbcd6f7127 Mon Sep 17 00:00:00 2001 From: Hugo Gresse Date: Sun, 28 Jun 2026 12:48:55 +0200 Subject: [PATCH] Fix duplicated homepage title The homepage rendered Sunny Tech | Sunny Tech: index.astro passed title="Sunny Tech" and Layout appended "| Sunny Tech". Drop the title prop on the homepage so it falls back to the tagline, and update the tagline to include the year and dates. Co-Authored-By: Claude Opus 4.8 --- src/layouts/Layout.astro | 4 ++-- src/pages/index.astro | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index ab3cee5..3fab447 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -8,7 +8,7 @@ import SponsorBanner from '../components/SponsorBanner.astro' import { computeOgImageType, computeOgPath } from '../og/ogImage' interface Props { - title: string + title?: string description?: string metaImage?: string | null } @@ -43,7 +43,7 @@ const url = import.meta.env.SITE const image = metaImage || url + computeOgPath(Astro.url.pathname) const ogImageType = computeOgImageType(image) const siteName = 'Sunny Tech' -const siteNameWithTagline = 'Sunny Tech, la conférence Tech organisée à Montpellier' +const siteNameWithTagline = 'Sunny Tech 2026, la conférence Tech organisée à Montpellier — 2 & 3 juillet' const pageTitle = title || siteName const fullPageTitle = title ? `${title} | ${siteName}` : siteNameWithTagline const pageDescription = diff --git a/src/pages/index.astro b/src/pages/index.astro index ea8a224..73b3557 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -14,7 +14,7 @@ const openPlannerData: OpenPlannerType = await response.json() const tickets = openPlannerData.tickets ?? [] --- - +