I am currently working on a jekyll based homepage and I cant get pagination working.
<ul class="posts">
{% for post in paginator.posts %}
<li>
<span class="list_date">{{ post.date | date_to_string }}</span> » <span class="list_title"> {{ post.title }} </span><br>
<span class="list_content">{{ post.content | strip_html | truncatewords:35}}</span>
<a href="{{ post.url }}">more...</a>
</li>
{% endfor %}
</ul>
This is my liquid code and it works perfectly well when using site instead of paginator. Also in my _config.yml I have this part:
paginate: 2
paginator_path: "news/page:num"
Since the index.html file is in the news folder