Update PostLayout.astro

This commit is contained in:
2026-06-15 23:30:56 +08:00
committed by GitHub
parent 84c1bd628f
commit 497688ecbf
+2 -2
View File
@@ -16,7 +16,7 @@ const { site } = config;
const { title, description, ogImage, canonicalURL, pubDatetime, modDatetime } = Astro.props;
const commentPath = canonicalURL ? new URL(canonicalURL).pathname : undefined;
const commentPath = Astro.url.pathname;
const structuredData = {
"@context": "https://schema.org",
@@ -54,7 +54,7 @@ const structuredData = {
<slot />
{
commentPath && (
commentPath.startsWith("/posts/") && (
<TwikooComments envId="http://47.108.235.131:40063/" path={commentPath} />
)
}