Jekyll post not generated
- The post is not placed in the
_posts
directory. - When you change the
collections_dir
in your config from.
(default) tomy_col_folder
all your posts have to move as well belowmy_col_folder/_posts
jekyll defaults - 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 : New posts not being generated
I finally found why jekyll was failing. The title i used in one of my posts had a colon (:) in it. I just had to replace it with :
and the post parsed fine.
Jekyll is not reading new posts
Today I tried building again and it built successfully first and second posts as I wanted. I was duplicating and renaming posts from Windows Explorer to create new posts. Today I realized Ubuntu doesn't detect changes that I made in Windows Explorer, probably the core of the problem is that. Everything seems like working now!
Jekyll blog posts not showing up on github pages
If everything is right you will have a message with an information that your server is running afaik.
For example this is my message (note last line):
$ bundle exec jekyll serve
Configuration file: /Users/alexfreik/Documents/GitHub/ltc-webpage/_config.yml
Source: /Users/alexfreik/Documents/GitHub/ltc-webpage
Destination: /Users/alexfreik/Documents/GitHub/ltc-webpage/_site
Incremental build: disabled. Enable with --incremental
Generating...
Jekyll Feed: Generating feed for posts
done in 0.94 seconds.
Auto-regeneration: enabled for '/Users/alexfreik/Documents/GitHub/ltc-webpage'
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
Do you have this information?
EDIT: The problem was in the incorrectly set pagination.
Jekyll is not reading site.posts
Updated Answer:
Check that your posts are in YYYY-MM-DD-title.MARKUP, i.e. 2017-01-01-title.md style, with 0 for padding.
Under "Creating Post Files" in "Writing Posts" on Jekyll's documentation page:
To create a new post, all you need to do is create a file in the _posts directory. How you name files in this folder is important. Jekyll requires blog post files to be named according to the following format:
YEAR-MONTH-DAY-title.MARKUP
Where YEAR is a four-digit number, MONTH and DAY are both two-digit numbers, and MARKUP is the file extension representing the format used in the file. For example, the following are examples of valid post filenames:
2011-12-31-new-years-eve-is-awesome.md
2012-09-12-how-to-write-a-blog.md
Former Answer:
Is your _posts folder located in your website's root directory?
My main suggestion otherwise is to create a layout (in the layouts folder) specifically for showing your index (so make a normal webpage and copy and paste the current non-frontmatter content of your index.md file inside). It's my understanding that if it's not Liquid or Markdown, your code is shown as is, and not read / processed for building the website. Even if you have an entirely empty bottom half to your index.md page, to my understanding it should show your posts.
Why is Jekyll not working in local when I add a new post?
This a Jekyll 3.x behavior.
Posts with a date in the future are not published, except if you :
- set a
future: true
variable in_config.yml
or
- do a
jekyll serve --future
This is not a problem under Jekyll 2.x and Github pages.
Jekyll post not showing up on github pages but does show up on http://127.0.0.1:4000/
If you go to your settings page, in the Github Pages, you will see :
Your site is having problems building: A file was included in _includes/head.html, that is a symlink or does not exist in your _includes directory. For more information, see https://help.github.com/articles/page-build-failed-file-is-a-symlink.
Copy paste your local analytics.html
in your _include
folder, push, and everything will be ok.
Related Topics
Dangerousattributeerror in Omniauth Railscast Tutorial: Create Is Defined by Activerecord
Why Is Ruby's Loop Command Slower Than While True
Ruby 2.4 on MAC Os Mojave:Image Not Found ... Related to Openssl.Bundle
Gem Install Wrong Number of Arguments (Given 4, Expected 1)
Deep Convert Openstruct to JSON
Encoding::Undefinedconversionerror: "\Xc2" from Ascii-8Bit to Utf-8
Omission of Curly Braces for a Hash in an Array
Where Are Catch and Throw Useful in Ruby
Regex for Matching All Words Between a Set of Curly Braces
Kernel_Require.Rb:55:In 'Require': Cannot Load Such File Error
How to Spec Methods That Exit or Abort
Change Emacs Ruby-Mode Indent to 4 Spaces
Install Gem Gives "Failed to Build Gem Native Extension."
How to Force To_Yaml to Output Long Strings in Literal Block Style
Ruby Block Taking Array or Multiple Parameters