From b9e41e7cced8a56dab0a19fb35846cce91471bed Mon Sep 17 00:00:00 2001 From: electron-rare <108685187+electron-rare@users.noreply.github.com> Date: Wed, 10 Jun 2026 22:17:39 +0200 Subject: [PATCH] fix(404): noindex instead of canonical --- src/layouts/Base.astro | 6 +++--- src/pages/404.astro | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index 3fa4890..58029ec 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -1,8 +1,8 @@ --- import '../styles/global.css'; -interface Props { title: string; description: string; light?: boolean; } -const { title, description, light = false } = Astro.props; +interface Props { title: string; description: string; light?: boolean; noindex?: boolean; } +const { title, description, light = false, noindex = false } = Astro.props; const fullTitle = `${title} | Formations L'Electron Rare`; --- @@ -12,7 +12,7 @@ const fullTitle = `${title} | Formations L'Electron Rare`; {fullTitle} - + {noindex ? : } diff --git a/src/pages/404.astro b/src/pages/404.astro index 9f69df6..40cb243 100644 --- a/src/pages/404.astro +++ b/src/pages/404.astro @@ -2,7 +2,7 @@ import Base from '../layouts/Base.astro'; import Nav from '../components/Nav.astro'; --- - +