0

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

我的帖子是一个降价文件,我在 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 页面,选择主题,自定义站点并创建/发布博客文章。我什至没有本地环境。

我还需要做什么?

4

1 回答 1

0

我在标签中使用了完整的 git 提交 ID,我的要点显示在降价文件中。

{% 要点 1234567xxxxxxxxx.... %}

奇怪的是,通常 7 个字符就足够了。但这对我有用。

于 2021-01-20T09:37:02.137 回答