为什么 jekyll 不是 运行?
Why the jekyll is not running?
您好,我的博客主页 (https://igorkowalczyk.github.io/blog) does not work, but normal posts such as (https://igorkowalczyk.github.io/blog/categories/offtop) 无法正常工作。
我也不知道是什么问题
我怀疑是索引的问题,但我也不清楚。
有人知道它为什么不起作用吗?
你的 IgorKowalczyk/blog/index.md
uses paginator.posts
, which should be working only in HTML files,而不是 md
(markdown 文件)。
categories/offtop.html
是一个 HTML 文件,由 Jekyll 正确地 rendered/generated。
- The pagination logic should not sit inside the content files (e.g. individual post or document files). It belongs in the layout files.
- If you place markdown code into your layout or include files you will have to explicitly pass it through the markdownify filter.
My recommendation is to keep your content (e.g. blog posts) in .md files (which will only contain markdown syntax) and everything dealing with the structure of your site in .html
files (which will only include HTML syntax).
OP MAJO mentions having to restore the right content for the index.html file: commit ac2ad43
您好,我的博客主页 (https://igorkowalczyk.github.io/blog) does not work, but normal posts such as (https://igorkowalczyk.github.io/blog/categories/offtop) 无法正常工作。
我也不知道是什么问题
我怀疑是索引的问题,但我也不清楚。
有人知道它为什么不起作用吗?
你的 IgorKowalczyk/blog/index.md
uses paginator.posts
, which should be working only in HTML files,而不是 md
(markdown 文件)。
categories/offtop.html
是一个 HTML 文件,由 Jekyll 正确地 rendered/generated。
- The pagination logic should not sit inside the content files (e.g. individual post or document files). It belongs in the layout files.
- If you place markdown code into your layout or include files you will have to explicitly pass it through the markdownify filter.
My recommendation is to keep your content (e.g. blog posts) in .md files (which will only contain markdown syntax) and everything dealing with the structure of your site in
.html
files (which will only include HTML syntax).
OP MAJO mentions