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 && ( - + ) } - -