From f0e73cf90005709e20b2f16f63d67d6802af3332 Mon Sep 17 00:00:00 2001 From: Pauline Date: Mon, 22 Jan 2024 04:27:34 +0100 Subject: feat(layout): add seo metadata to all pages --- apps/website/src/layouts/BlogPost.astro | 6 +++--- apps/website/src/layouts/Layout.astro | 27 ++++----------------------- 2 files changed, 7 insertions(+), 26 deletions(-) (limited to 'apps/website/src/layouts') diff --git a/apps/website/src/layouts/BlogPost.astro b/apps/website/src/layouts/BlogPost.astro index 188aae1..17ff74d 100644 --- a/apps/website/src/layouts/BlogPost.astro +++ b/apps/website/src/layouts/BlogPost.astro @@ -6,18 +6,18 @@ import Layout from './Layout.astro'; type Props = CollectionEntry<'blog'>['data']; -const { title, description, pubDate, updatedDate, heroImage } = Astro.props; +const { title, description, publishDate, updatedDate, coverImage } = Astro.props; ---
- {heroImage && Hero Image} + {coverImage && Hero Image}
- + { updatedDate && (
diff --git a/apps/website/src/layouts/Layout.astro b/apps/website/src/layouts/Layout.astro index f916ee1..b1cde5c 100644 --- a/apps/website/src/layouts/Layout.astro +++ b/apps/website/src/layouts/Layout.astro @@ -1,37 +1,18 @@ --- import Footer from '@components/base/Footer.astro'; -import Favicon from '/media/polyfrost/minimal_bg.svg?url'; import Navbar from '../components/base/navbar/Navbar.astro'; +import BaseHead, { type Props as HeadProps } from '../components/shared/BaseHead.astro'; import '../styles/global.css'; -interface Props { - title?: string; - description?: string; - favicon?: string; -} +export type Props = HeadProps; -const { - title = 'Polyfrost', - description = 'Official website for Polyfrost.', - favicon = Favicon, -} = Astro.props; +const { ...head } = Astro.props; --- - - - - - - - - - - - - {title} + -- cgit