mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Update PostLayout.astro
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
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;
|
||||||
@@ -36,6 +35,7 @@ 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,5 +63,4 @@ const structuredData = {
|
|||||||
</Fragment>
|
</Fragment>
|
||||||
|
|
||||||
<slot />
|
<slot />
|
||||||
<Giscus />
|
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|||||||
Reference in New Issue
Block a user