hua*_*ndu 5 github jekyll coderay github-pages jekyll-bootstrap
我现在正在使用 Jekyll-Bootstrap。在我的本地环境中,我可以在 jekyll 的 _config.yml 中启用 CodeRay 并在我的帖子中使用它,没有任何问题。但是同样的代码不能在github上运行。
我的_config.yml(省略了 jekyll-bootstrap 配置):
# Use kramdown as markdown parser engine.
markdown: kramdown
markdown_ext: markdown,mkd,mkdn,md
textile_ext: textile
kramdown:
auto_ids: true
footnote_nr: 1
entity_output: as_char
toc_levels: 1..6
smart_quotes: lsquo,rsquo,ldquo,rdquo
use_coderay: true
coderay:
coderay_wrap: div
coderay_line_numbers: nil
coderay_tab_width: 4
coderay_bold_every: 10
coderay_css: class
Run Code Online (Sandbox Code Playgroud)
GithHb 页面运行最小的 ruby / ruby gems 配置,它还会覆盖您的一些_config.yml设置,请参阅https://help.github.com/articles/using-jekyll-with-pages了解更多信息。
解决这个问题的一种方法是在本地构建,然后绕过 GitGub 的 Jekyll 配置将生成的输出与 GitHub 页面同步。
| 归档时间: |
|
| 查看次数: |
1889 次 |
| 最近记录: |