Minimal-mistakes: recent posts not showing up

Created on 17 May 2017  路  6Comments  路  Source: mmistakes/minimal-mistakes

  • [x ] This is a question about using the theme.
    I am trying to migrate an earlier version of minimal mistakes to the ruby gem version which would allow me to clear out the various folders (_sass,assets etc). Most of it seems to work apart from the fact that i cant see the posts that reside within the _posts folder on the "Recent posts" section on the home page.

Having re -read the documentation, i am unable to figure out whats missing. Can you help?

Duplicate Support

Most helpful comment

554 seems to be about related post and not recent posts.

I found that recent posts wouldn't show up if I forgot to change index.md created by jekyll new into index.html. This is required by pagination.

All 6 comments

Duplicate of #554. See that issue for fixes:

  1. Install Jekyll Related Posts plugin
  2. Or replace two files with patched versions

554 seems to be about related post and not recent posts.

I found that recent posts wouldn't show up if I forgot to change index.md created by jekyll new into index.html. This is required by pagination.

I had the same problem, but for me, it was because the paginate plugin wasn't configured properly. These 2 lines were commented out:

paginate: 10 # amount of posts to show
paginate_path: /page:num/

Uncommented them and my posts are now listed. In case anyone has the same problem...

Don't forget to create index.html and put

---
layout: home
---

I had this problem too. The solution was to ensure that index.html was in the root directory and to remove permalink from the front matter. As per here you can't use permalink in the front matter - it will break pagination.

I read the docs again and now I'm manage to make it work.

3 files need to be changed:
vim recent/index.html

layout: home
author_profile: true
---

vim _data/navigation.yml

main:
  - title: "Recent"
    url: /recent/

vim _config.yml

paginate: 10 
paginate_path: /recent/page:num/
Was this page helpful?
0 / 5 - 0 ratings