未生成Jekyll帖子 [英] Jekyll post not generated

查看:61
本文介绍了未生成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.
  • > 标题中包含 : 字符. &#58替换. 在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 the MARKUP 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 to true.
    • The title contains a : character. Replace it with &#58. Works in jekyll 3.8.3 (and probably in other 'recent' releases).
    • 这篇关于未生成Jekyll帖子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆