From 84c1bd628ffdcee4891ced534739ac5ef7dd25fc Mon Sep 17 00:00:00 2001 From: QihanNX Date: Mon, 15 Jun 2026 23:25:37 +0800 Subject: [PATCH] Update PostLayout.astro --- src/layouts/PostLayout.astro | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/src/layouts/PostLayout.astro b/src/layouts/PostLayout.astro index fa44862..f5c2f5a 100644 --- a/src/layouts/PostLayout.astro +++ b/src/layouts/PostLayout.astro @@ -1,6 +1,7 @@ --- import Layout from "./Layout.astro"; import config from "@/config"; +import TwikooComments from "../components/TwikooComments.astro"; type Props = { title?: string; @@ -13,8 +14,9 @@ type Props = { const { site } = config; -const { title, description, ogImage, canonicalURL, pubDatetime, modDatetime } = - Astro.props; +const { title, description, ogImage, canonicalURL, pubDatetime, modDatetime } = Astro.props; + +const commentPath = canonicalURL ? new URL(canonicalURL).pathname : undefined; const structuredData = { "@context": "https://schema.org", @@ -35,32 +37,25 @@ const structuredData = { - - { pubDatetime && ( - + ) } { modDatetime && ( - + ) } - -