You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Jekyll Minimal Mistakes主题配置Giscus评论失效求助

问题:Jekyll Minimal Mistakes主题Giscus评论配置不生效

我用Jekyll的Minimal Mistakes主题搭建博客,已经在_config.yml里按以下配置设置了Giscus评论,但所有文章里都显示不出评论模块。不过直接在MD文件中嵌入Giscus的脚本代码时,评论框能正常显示。我查了相关资料,其他人只修改_config.yml就成功配置了,所以来求助。

我的GitHub仓库:Hyun-Soon/Hyun-Soon.github.io

_config.yml配置代码

comments:
  provider               : giscus # false (default), "disqus", "discourse", "facebook", "staticman", "staticman_v2", "utterances", "giscus", "custom"
  disqus:
    shortname            : # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-
  discourse:
    server               : # https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963 , e.g.: meta.discourse.org
  facebook:
    # https://developers.facebook.com/docs/plugins/comments
    appid                :
    num_posts            : # 5 (default)
    colorscheme          : # "light" (default), "dark"
  utterances:
    theme                : # "github-light" (default), "github-dark"
    issue_term           : # "pathname" (default)
  giscus:
    repo_id              : "R_kgDOKeOOEA" # Shown during giscus setup at https://giscus.app
    category_name        : "Comments" # Full text name of the category
    category_id          : "DIC_kwDOKeOOEM4CaKQd" # Shown during giscus setup at https://giscus.app
    discussion_term      : "pathname" # "pathname" (default), "url", "title", "og:title"
    reactions_enabled    : "1" # '1' for enabled (default), '0' for disabled
    theme                : "dark_dimmed" # "light" (default), "dark", "dark_dimmed", "transparent_dark", "preferred_color_sc

可正常运行的脚本代码

<script src="https://giscus.app/client.js"
        data-repo="Hyun-Soon/Hyun-Soon.github.io"
        data-repo-id="R_kgDOKeOOEA"
        data-category="Comments"
        data-category-id="DIC_kwDOKeOOEM4CaKQd"
        data-mapping="pathname"
        data-strict="0"
        data-reactions-enabled="1"
        data-emit-metadata="0"
        data-input-position="bottom"
        data-theme="dark_dimmed"
        data-lang="ko"
        crossorigin="anonymous"
        async>
</script>

内容的提问来源于stack exchange,提问作者HyunSoon

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.08 10:05:25