diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index 7113e39..88db36b 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -4,9 +4,9 @@ import '../styles/global.css'; export interface Props { - title: string; - description: string; - image?: string; + title: string; + description: string; + image?: string; } const canonicalURL = new URL(Astro.url.pathname, Astro.site); @@ -14,28 +14,19 @@ const canonicalURL = new URL(Astro.url.pathname, Astro.site); const { title, description, image = '/placeholder-social.jpg' } = Astro.props; --- - - - - - {title} - - - - diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 08395a4..3d57acb 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -3,11 +3,14 @@ const today = new Date(); --- + diff --git a/src/components/FormattedDate.astro b/src/components/FormattedDate.astro index 1a40fbc..51f6cef 100644 --- a/src/components/FormattedDate.astro +++ b/src/components/FormattedDate.astro @@ -1,17 +1,11 @@ --- export interface Props { - date: Date; + date: Date; } const { date } = Astro.props; --- diff --git a/src/components/Header.astro b/src/components/Header.astro index 4d3da1f..aa907b1 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,25 +1,49 @@ --- import HeaderLink from './HeaderLink.astro'; -import { SITE_TITLE } from '../consts'; ---
-

- {SITE_TITLE} -

- + +
+ diff --git a/src/components/HeaderLink.astro b/src/components/HeaderLink.astro index 3dd439b..77501bb 100644 --- a/src/components/HeaderLink.astro +++ b/src/components/HeaderLink.astro @@ -10,15 +10,17 @@ const isActive = href === pathname || href === pathname.replace(/\/$/, ''); --- - + + diff --git a/src/layouts/BlogPost.astro b/src/layouts/BlogPost.astro index a9526d0..0ccb988 100644 --- a/src/layouts/BlogPost.astro +++ b/src/layouts/BlogPost.astro @@ -1,5 +1,6 @@ --- import type { CollectionEntry } from 'astro:content'; + import BaseHead from '../components/BaseHead.astro'; import Header from '../components/Header.astro'; import Footer from '../components/Footer.astro'; @@ -7,45 +8,29 @@ import FormattedDate from '../components/FormattedDate.astro'; type Props = CollectionEntry<'blog'>['data']; -const { title, description, pubDate, updatedDate, heroImage } = Astro.props; +const { title, description, pubDate } = Astro.props; --- - - - - - - -
-
-
- {heroImage && } -

{title}

- - { - updatedDate && ( -
- Last updated on -
- ) - } -
- -
-
-