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'; --- - +