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

Using paginator, posts are pinned to different pages #4

Open
pbamotra opened this issue Mar 7, 2020 · 1 comment
Open

Using paginator, posts are pinned to different pages #4

pbamotra opened this issue Mar 7, 2020 · 1 comment

Comments

@pbamotra
Copy link

pbamotra commented Mar 7, 2020

I'm using stickposts to pin selected posts from on my website. I'm also using the original jekyll-paginator, when I use sticky:true on posts that happen to be on to different paginator pages, the posts are pinned to different pages.

I want all pinned posts to be on the first page. How do I do this?

@Eruimdas
Copy link

Hello,

as mentioned in #1 ,
you can change your /layouts/home.html file to:

change ...etc... part to what it already there, than delete the for loop for posts. And here you go!

{% for post in sorted %}
...etc...
{% endfor %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants