From 575f67665b05ce02413f6f2b722ec0c3d09459cc Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Sat, 21 Feb 2026 15:31:57 +0100 Subject: [PATCH] =?UTF-8?q?Descriptions=20SEO=20sp=C3=A9cifiques=20pour=20?= =?UTF-8?q?les=20pages=20photo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Chaque page photo a maintenant sa propre meta description au lieu du texte générique : la galerie principale utilise une description trilingue détaillée, les catégories utilisent leur subtitle, et l'index du blog photo utilise la traduction feedDescription. --- src/components/photo/pages/PhotoAlbumContent.astro | 4 +++- src/components/photo/pages/PhotoBlogIndexContent.astro | 7 ++++++- src/components/photo/pages/PhotoHomeContent.astro | 7 ++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/components/photo/pages/PhotoAlbumContent.astro b/src/components/photo/pages/PhotoAlbumContent.astro index 780f511..e2c8862 100644 --- a/src/components/photo/pages/PhotoAlbumContent.astro +++ b/src/components/photo/pages/PhotoAlbumContent.astro @@ -16,10 +16,12 @@ const entryId = getCategoryEntryId(category, lang); const categoryData = await getEntry('photoCategories', entryId) ?? await getEntry('photoCategories', category); const categoryLabel = categoryData?.data.title || category; +const categorySubtitle = categoryData?.data.subtitle || ""; const title = `${categoryLabel} - Jalil Arfaoui`; +const description = `${categoryLabel} — ${categorySubtitle}. Photos par Jalil Arfaoui.`; --- - + diff --git a/src/components/photo/pages/PhotoBlogIndexContent.astro b/src/components/photo/pages/PhotoBlogIndexContent.astro index 1e0ac86..f6a542d 100644 --- a/src/components/photo/pages/PhotoBlogIndexContent.astro +++ b/src/components/photo/pages/PhotoBlogIndexContent.astro @@ -45,7 +45,12 @@ const featuredPosts = postsWithImages.filter(post => post.data.featured); const regularPosts = postsWithImages.filter(post => !post.data.featured); --- - +
diff --git a/src/components/photo/pages/PhotoHomeContent.astro b/src/components/photo/pages/PhotoHomeContent.astro index 1450bf3..60dbb82 100644 --- a/src/components/photo/pages/PhotoHomeContent.astro +++ b/src/components/photo/pages/PhotoHomeContent.astro @@ -12,9 +12,14 @@ interface Props { const { lang = 'fr' } = Astro.props; const title = `${t('photo', 'galleryTitle', lang)} - Jalil Arfaoui`; +const descriptions: Record = { + fr: "Portfolio photo de Jalil Arfaoui. Portraits, paysages, cultures, musique, nature, sports, moteurs, quotidien.", + en: "Jalil Arfaoui's photo portfolio. Portraits, landscapes, cultures, music, nature, sports, engines, everyday life.", + ar: "معرض صور جليل عرفاوي. بورتريهات، مناظر طبيعية، ثقافات، موسيقى، طبيعة، رياضة، محرّكات، حياة يومية.", +}; --- - +