jekyll

Jekyll post not generated


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.

What are some common reasons for a Jekyll post to not be generated?


Solution


  1. The post is not placed in the _posts directory.

    • When you change the collections_dir in your config from . (default) to my_col_folder all your posts have to move in my_col_folder/_posts as well jekyll defaults
  2. The post has an incorrect title.

    • Posts must be named YEAR-MONTH-DAY-title.MARKUP (Note the MARKUP extension, which is usually .md or .markdown)
  3. The post's date is in the future.

    • You can make such posts visible by setting future: true in _config.yml (documentation)
  4. The post has published: false in its front matter.

    • Set it to true.