Github页面代码块的离线和在线行为不同

时间:2018-03-11 18:29:35

标签: css jekyll github-pages

脱机版本是我想要的版本,它看起来像这样:

enter image description here

然而,在线版本如下所示:

enter image description here

此外,this is the direct link到博客,以便您可以看到错误的版本。

如您所见,代码块周围有一个深灰色框,我不想看到。我已经尝试查看配置文件,但由于我可以正确地看到它离线,我不知道如何解决它。 我正在使用jekyll 3.5.2。

This是博客的存储库。

1 个答案:

答案 0 :(得分:1)

Gemfile 包含:

source "https://rubygems.org"
gem 'github-pages'

我能够重现Github页面的行为。

您可以在 _highlights.scss 中用.highlight {...规则替换pre.highlight {...规则来解决您的问题。