Skip to content

Commit

Permalink
Allow using theme without pagination (mmistakes#2378)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohd-akram authored and jesuswasrasta committed Jul 8, 2020
1 parent d95462f commit 5b1f5e1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@

<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 %}

Expand Down

0 comments on commit 5b1f5e1

Please sign in to comment.