未生成Jekyll帖子 [英] Jekyll post not generated
本文介绍了未生成Jekyll帖子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正尝试在Jekyll网站上添加新帖子,但是运行jekyll serve
时在生成的页面上看不到它.
I am trying to add a new post to my Jekyll site, but I cannot see it on the generated pages when I run jekyll serve
.
不生成Jekyll帖子的常见原因有哪些?
What are some common reasons for a Jekyll post to not be generated?
推荐答案
- 帖子未放置在
_posts
目录中. - > 帖子标题不正确. 帖子应命名为
YEAR-MONTH-DAY-title.MARKUP
(请注意MARKUP
扩展名,通常为.md
或.markdown
) - 帖子的日期是将来的日期.您可以通过在
_config.yml
> 帖子published: false
是其主要内容. 将其设置为true
. -
> 标题中包含在jekyll:
字符. 用:
替换.3.8.3
(可能还有其他最新"版本)中可用. - The post is not placed in the
_posts
directory. - The post has incorrect title. Posts should be named
YEAR-MONTH-DAY-title.MARKUP
(Note theMARKUP
extension, which is usually.md
or.markdown
) - The post's date is in the future. You can make the post visible by setting
future: true
in_config.yml
(documentation) - The post has
published: false
in its front matter. Set it totrue
. The title contains aWorks in jekyll:
character. Replace it with:
.3.8.3
(and probably in other 'recent' releases).
这篇关于未生成Jekyll帖子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文