Allow using theme without pagination (#2378)

This commit is contained in:
Mohamed Akram 2020-01-25 19:17:46 +04:00 committed by Michael Rose
parent 1163ddc3f2
commit 3332196ec5

View file

@ -6,7 +6,13 @@ layout: archive
<h3 class="archive__subtitle">{{ site.data.ui-text[site.locale].recent_posts | default: "Recent Posts" }}</h3>
{% for post in paginator.posts %}
{% if site.paginate %}
{% assign posts = paginator.posts %}
{% else %}
{% assign posts = site.posts %}
{% endif %}
{% for post in posts %}
{% include archive-single.html %}
{% endfor %}