Not quite sure what is happening here. Can you check the title and dates in the YAML front matter for both files and make sure they are not identical? I’m wondering if you copied and pasted, then only changed the filename without modifying the front matter?
If my first theory is wrong, could you share the contents of both files and or share a link to your repo, if it is public?
After some brute force debugging I found the guilty in the ‘jekyll-language-plugin’ gem.
In the Gemfile, just put an # symbol on that line and build & serve the project again
group :jekyll_plugins do
# This below is the line to comment
#gem 'jekyll-language-plugin'
end
Probably that gem hasn’t been configured and introduces some mistakes in the building process.
@fabiomux Ha! I was just posting that and yes we both came to the same conclusion. However, I do not believe it is the plugin, but the use of the group element in the gemfile. Here is how I fixed the problem:
Change this code in the gemfile from this:
group :jekyll_plugins do
gem 'jekyll-language-plugin'
end
To this:
gem 'jekyll-language-plugin'
Make sure you re-run bundle exec jekyll serve --livereload.
If that does not work, delete the gemfile.lock file, run bundle install, and then run bundle update. Then, try running bundle exec jekyll serve --livereload again and you should see all posts.
As mentioned here: Plugins | Jekyll • Simple, blog-aware, static sites the jekyll_plugin group forces to load the wrapped gem at the beginning, putting the gem outside it won’t be loaded unless explicitly configured (I suppose the docs is talking about the :plugin section).
So in that case, having no setup in the _config file, removing the gem from the group should be the same as commenting on it inside the group, but I haven’t investigated further.
I removed the jekyll-language-plugin from the plugin list as it didn’t do what I wanted to do, but I wasn’t aware it can have an effect if left in the Gemfile …
I copied the jekyll_plugin group config from a documentation without knowing its effects