mirror of
https://github.com/valentineus/popov.link.git
synced 2025-07-03 16:10:26 +03:00
Refactor Analytics and Head components
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user