~xdavidwu/xdavidwu.link

9e43ed4b590cfba8e481c4024f7648edd18c7503 — Mohamed Akram 4 years ago 973794f
Allow using theme without pagination (#2378)

1 files changed, 7 insertions(+), 1 deletions(-)

M _layouts/home.html
M _layouts/home.html => _layouts/home.html +7 -1
@@ 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 %}