{% if paginator %}
{% assign posts = paginator.posts %}
{% else %}
{% assign posts = site.posts %}
{% endif %}
{% assign entries_layout = page.entries_layout | default: 'list' %}
<div class="entries-{{ entries_layout }}">
{% for post in posts %}
{% include archive-single.html type=entries_layout %}
{% endfor %}
</div>
But in the post page, the next previous article button and next article button still use the variable page.previous.url and page.next.url. The variable paginator can't be readed in post page.
I list articles in a page like this:
But in the post page, the next previous article button and next article button still use the variable page.previous.url and page.next.url. The variable paginator can't be readed in post page.