diff --git a/astro/src/components/Head.astro b/astro/src/components/Head.astro index 36d8778..663d2a7 100755 --- a/astro/src/components/Head.astro +++ b/astro/src/components/Head.astro @@ -2,6 +2,12 @@ import { SITE_TITLE, SITE_DESCRIPTION } from "../consts"; const page = Astro.url.pathname; + +interface Props { + title: string; +} + +const { title } = Astro.props; --- @@ -26,21 +32,21 @@ const page = Astro.url.pathname; --> -{SITE_TITLE} {page} - +{title} + - + - + diff --git a/astro/src/layouts/Layout.astro b/astro/src/layouts/Layout.astro index 9efaf83..a6b3225 100755 --- a/astro/src/layouts/Layout.astro +++ b/astro/src/layouts/Layout.astro @@ -13,7 +13,7 @@ const { title } = Astro.props; - +