Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recent posts not showing up #1022

Closed
vikmn opened this issue May 17, 2017 · 6 comments
Closed

recent posts not showing up #1022

vikmn opened this issue May 17, 2017 · 6 comments

Comments

@vikmn
Copy link

vikmn commented May 17, 2017

  • [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?

@mmistakes
Copy link
Owner

Duplicate of #554. See that issue for fixes:

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

mmistakes added a commit that referenced this issue Sep 5, 2017
`site.related_posts` should return an array of latest posts when no related ones are found due to `lsi` being disabled (GitHub Page's doesn't support it).

This works around that bug by showing the 4 latest posts to populate the "You May Also Enjoy" module when enabled with `related: true`.

Fixes #554
Related: #978 #1022
@adrianba
Copy link

#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.

@browniebroke
Copy link

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...

@benajaero
Copy link

Don't forget to create index.html and put

---
layout: home
---

@grantbey
Copy link

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.

@ykfq
Copy link

ykfq commented Sep 13, 2018

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/

kkunapuli pushed a commit to kkunapuli/kkunapuli.github.io that referenced this issue May 30, 2019
`site.related_posts` should return an array of latest posts when no related ones are found due to `lsi` being disabled (GitHub Page's doesn't support it).

This works around that bug by showing the 4 latest posts to populate the "You May Also Enjoy" module when enabled with `related: true`.

Fixes mmistakes#554
Related: mmistakes#978 mmistakes#1022
makaroniame added a commit to makaroniame/makaroniame-old.github.io that referenced this issue May 18, 2022
`site.related_posts` should return an array of latest posts when no related ones are found due to `lsi` being disabled (GitHub Page's doesn't support it).

This works around that bug by showing the 4 latest posts to populate the "You May Also Enjoy" module when enabled with `related: true`.

Fixes mmistakes#554
Related: mmistakes#978 mmistakes#1022
jchwenger pushed a commit to jchwenger/jchwenger.github.io that referenced this issue May 5, 2023
`site.related_posts` should return an array of latest posts when no related ones are found due to `lsi` being disabled (GitHub Page's doesn't support it).

This works around that bug by showing the 4 latest posts to populate the "You May Also Enjoy" module when enabled with `related: true`.

Fixes mmistakes#554
Related: mmistakes#978 mmistakes#1022
yesterz pushed a commit to yesterz/yesterz.github.io-test that referenced this issue Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants