fix: 启用 Giscus 评论系统的严格模式

将 data-strict 属性从 "0" 改为 "1",确保评论仅关联到实际发布的文章页面,避免在预览或非目标页面上加载评论。
This commit is contained in:
二叉树树
2026-01-24 10:02:14 +08:00
parent 243451a947
commit 28ffdb4205
2 changed files with 12 additions and 12 deletions

View File

@@ -13,12 +13,12 @@
"state": {
"type": "markdown",
"state": {
"file": "posts/del-git-commit.md",
"file": "posts/mac-gal.md",
"mode": "source",
"source": false
},
"icon": "lucide-file",
"title": "del-git-commit"
"title": "mac-gal"
}
}
]
@@ -94,7 +94,7 @@
"state": {
"type": "backlink",
"state": {
"file": "posts/del-git-commit.md",
"file": "posts/mac-gal.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
@@ -104,7 +104,7 @@
"unlinkedCollapsed": true
},
"icon": "links-coming-in",
"title": "del-git-commit 的反向链接列表"
"title": "mac-gal 的反向链接列表"
}
},
{
@@ -113,12 +113,12 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "posts/del-git-commit.md",
"file": "posts/mac-gal.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-going-out",
"title": "del-git-commit 的出链列表"
"title": "mac-gal 的出链列表"
}
},
{
@@ -142,13 +142,13 @@
"state": {
"type": "outline",
"state": {
"file": "posts/del-git-commit.md",
"file": "posts/mac-gal.md",
"followCursor": false,
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-list",
"title": "del-git-commit 的大纲"
"title": "mac-gal 的大纲"
}
}
]
@@ -171,6 +171,9 @@
},
"active": "ea8fe4fe54e0109e",
"lastOpenFiles": [
"posts/self-host-matrix.md",
"posts/gal.md",
"posts/del-git-commit.md",
"assets/images/del-git-commit-9.png",
"assets/images/del-git-commit-8.png",
"assets/images/del-git-commit-7.png",
@@ -181,9 +184,6 @@
"assets/images/del-git-commit-2.png",
"assets/images/del-git-commit-1.png",
"assets/images/del-git-commit.png",
"posts/gal.md",
"posts/del-git-commit.md",
"assets/images/gal-5.png",
"2024-11-20.md",
"posts/fuwari.md"
]

View File

@@ -178,7 +178,7 @@ const jsonLd = {
script.setAttribute("data-category", "Announcements");
script.setAttribute("data-category-id", "DIC_kwDOOi8qu84CprDV");
script.setAttribute("data-mapping", "pathname");
script.setAttribute("data-strict", "0");
script.setAttribute("data-strict", "1");
script.setAttribute("data-reactions-enabled", "1");
script.setAttribute("data-emit-metadata", "0");
script.setAttribute("data-input-position", "top");