Jekyll 中缺少 _layout 文件夹以添加 Disqus 评论

Missing _layout folder in Jekyll to add Disqus Comments

我想将 Disqus 添加到我的博客。我正在使用 Jekyll 版本 3,它使用基于 Gem 的主题。要添加 disqus 评论,我需要在不存在的 _layout 文件夹中添加 disqus 通用代码。关于在哪里添加 disqus 代码有什么建议吗?

Disqus 可通过默认主题-gem minima 用于 Jekyll 3.3.x 及更高版本。 来自主题的documentation:

Enabling comments (via Disqus)

Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments section below each post.

To enable it, add the following lines to your Jekyll site config:

disqus:
  shortname: my_disqus_shortname

Comments are enabled by default and will only appear in production, i.e., JEKYLL_ENV=production