【发布时间】:2021-04-24 01:01:03
【问题描述】:
我正在尝试使用标签{% 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 页面,选择主题,自定义站点并创建/发布博客文章。我什至没有本地环境。
我还需要做什么?
【问题讨论】:
标签: github markdown jekyll gist minima