我正在尝试向 Jekyll 网站添加新帖子,但运行时无法在生成的页面上看到它jekyll serve
.
无法生成 Jekyll 帖子的常见原因有哪些?
-
该帖子未放置在
_posts
目录。
- 当您更改
collections_dir
在你的配置中.
(默认)到my_col_folder
你所有的帖子也必须移到下面my_col_folder/_posts
杰基尔默认值 https://jekyllrb.com/docs/configuration/default/
-
该帖子的标题不正确。 https://stackoverflow.com/questions/15046420/jekyll-not-generating-posts帖子应该命名
YEAR-MONTH-DAY-title.MARKUP
(请注意MARKUP
扩大,通常是.md
or .markdown
)
-
帖子的日期是将来的日期。您可以通过设置使帖子可见
future: true
in _config.yml
(文档) https://jekyllrb.com/docs/configuration/#build-command-options
-
该帖子有 published: false 在其前面的内容中。 https://stackoverflow.com/questions/16990138/jekyll-not-generating-posts将其设置为
true
.
-
The title contains a : character. https://stackoverflow.com/questions/10963002/jekyll-new-posts-not-being-generated Replace it with :
. Works in jekyll 3.8.3
(and probably in other 'recent' releases).
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)