diff options
author | Valentin Popov <valentin@popov.link> | 2024-09-13 01:57:55 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-09-13 01:57:55 +0300 |
commit | 33c9464dad0979b05323e4d508875ad47e1c425f (patch) | |
tree | 2bc986dbbb0278250ec6c48c4a1dae43ea20bd08 /src/pages/blog | |
parent | b16d8ce36ce5c603a4444979c30998416c416929 (diff) | |
download | popov.link-33c9464dad0979b05323e4d508875ad47e1c425f.tar.xz popov.link-33c9464dad0979b05323e4d508875ad47e1c425f.zip |
Refactor Analytics and Head components
Diffstat (limited to 'src/pages/blog')
-rw-r--r-- | src/pages/blog/[...slug].astro | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro index 6754653..bcd5eed 100644 --- a/src/pages/blog/[...slug].astro +++ b/src/pages/blog/[...slug].astro @@ -3,6 +3,8 @@ import { type CollectionEntry, getCollection } from "astro:content"; import Comments from "../../components/Comments.astro"; import Layout from "../../layouts/BaseLayout.astro"; +type Props = CollectionEntry<"blog">; + export async function getStaticPaths() { const posts = await getCollection("blog"); @@ -12,8 +14,6 @@ export async function getStaticPaths() { })); } -type Props = CollectionEntry<"blog">; - const post = Astro.props; const { Content, remarkPluginFrontmatter } = await post.render(); --- @@ -24,7 +24,7 @@ const { Content, remarkPluginFrontmatter } = await post.render(); } </style> -<Layout title={post.data.title} description={post.data.description}> +<Layout description={post.data.description} title={post.data.title}> <article> <section class="header"> <h1>{post.data.title}</h1> |