在 github 最小值中嵌入要点标签 {% gist 7555c74 %} 不起作用

问题描述

我正在尝试使用标签 {% gist 1234567 %} 通过我的要点添加代码摘录。但是它们没有显示在我的帖子中。它们按原样显示。 {% gist 1234567 %}

我的帖子是一个 Markdown 文件,我在 github 上使用带有 jekyll minima 主题的 github 页面托管该文件。所以帖子的链接看起来像这样
https://github.com/<user>/blog/<postname>.md

我添加了将要点包含到 _config.yml 文件中的行。以下是_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

我在最小主题的文件夹结构中没有看到任何 gemfile。

作为背景 - 我使用最简单的方法来创建博客。启用 github 页面,选择主题,自定义站点并创建/发布博客文章。我什至没有本地环境。

我还需要做什么?

解决方法

我在标签中使用了完整的 git commit ID,我的要点显示在 markdown 文件中。

{% 要点 1234567xxxxxxxxx.. %}

当 7 个字符通常就足够了时很奇怪。 但这对我有用。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...