Fix compatibility issue with paginate V2 introduced by mmistakes/minimal-mistakes#2378 (#2381)

This commit is contained in:
iBug ♦ 2020-01-26 00:14:29 +08:00 committed by Michael Rose
parent ec0b288f9e
commit 82a71a59f2

View file

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