把giscus评论系统改成twikoo
This commit is contained in:
1 parent
676f05d861
commit
beb0b9e640
5 files changed
+61
-16
No files matched your search
@@ -13,6 +13,7 @@ import ImageWrapper from "../../components/misc/ImageWrapper.astro";
|
||||
import PostMetadata from "../../components/PostMeta.astro";
|
||||
import { profileConfig, siteConfig } from "../../config";
|
||||
import { formatDateToYYYYMMDD } from "../../utils/date-utils";
|
||||
import Comment from "@components/comment/index.astro"
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const blogEntries = await getSortedPosts();
|
||||
@@ -108,22 +109,8 @@ const jsonLd = {
|
||||
</Markdown>
|
||||
|
||||
{licenseConfig.enable && <License title={entry.data.title} slug={entry.slug} pubDate={entry.data.published} class="mb-6 rounded-xl license-container onload-animation"></License>}
|
||||
<script src="https://giscus.app/client.js"
|
||||
data-repo="MCKero6423/chat"
|
||||
data-repo-id="R_kgDOPcjoqA"
|
||||
data-category="Announcements"
|
||||
data-category-id="DIC_kwDOPcjoqM4CuFO_"
|
||||
data-mapping="pathname"
|
||||
data-strict="0"
|
||||
data-reactions-enabled="1"
|
||||
data-emit-metadata="0"
|
||||
data-input-position="top"
|
||||
data-theme="preferred_color_scheme"
|
||||
data-lang="zh-CN"
|
||||
data-loading="lazy"
|
||||
crossorigin="anonymous"
|
||||
async>
|
||||
</script>
|
||||
|
||||
<Comment post={entry}></Comment>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user