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 chukycheese committed Sep 18, 2023
1 parent f0132e7 commit daaa1a1
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 daaa1a1

Please sign in to comment.