Update PostLayout.astro

This commit is contained in:
2026-06-14 16:32:47 +08:00
committed by GitHub
parent f92dab1bc6
commit 69e569be9f
+2 -1
View File
@@ -1,6 +1,7 @@
--- ---
import Layout from "./Layout.astro"; import Layout from "./Layout.astro";
import config from "@/config"; import config from "@/config";
import Giscus from "@/components/Giscus.astro";
type Props = { type Props = {
title?: string; title?: string;
@@ -35,7 +36,6 @@ const structuredData = {
<Layout {title} {description} {ogImage} {canonicalURL}> <Layout {title} {description} {ogImage} {canonicalURL}>
<Fragment slot="head"> <Fragment slot="head">
<!-- Override og:type for article pages -->
<meta property="og:type" content="article" /> <meta property="og:type" content="article" />
{ {
@@ -63,4 +63,5 @@ const structuredData = {
</Fragment> </Fragment>
<slot /> <slot />
<Giscus />
</Layout> </Layout>