我试图使用标记{% gist 1234567 %}
通过我的文档添加代码摘要。但他们不会在我的帖子里展示。它们按原样显示。{% gist 1234567 %}
。
我的文章是一个标记文件,我是使用带有jekyll极小主题的github页面在github上托管的。因此,链接到这些帖子如下所示
https://github.com/<user>/blog/<postname>.md
我添加了行,以便在_config.yml文件中包含include。下面是_config.yml文件中的代码。
show_excerpts: true # set to true to show excerpts on the homepage
# Build settings
theme: minima
# generate social links in footer
minima:
social_links:
twitter: abcd
github: abcd
linkedin: abcd
skin: solarized-dark
# If you want to link only specific pages in your header, uncomment
# this and add the path to the pages in order as they should show up
header_pages:
- about.md
plugins:
- jekyll-feed
- jekyll-seo-tag
- jekyll-gist
我没有在文件夹结构中看到任何带有minima主题的see文件。
作为背景,我使用了最简单的方法来创建博客。启用github页面,选择主题,定制站点并创建/发布博客帖子。我甚至没有当地的环境。
我还需要做什么?
发布于 2021-01-20 01:37:02
我在标记中使用了完整的git提交ID,我的文档显示在标记文件中。
{% gist 1234567xxxxxxxxx.%}
奇怪的是,当7个字符一般是足够的。但这对我有用。
https://stackoverflow.com/questions/65796403
复制