added ability to switch off pagination on the blog page (#1909)
This commit is contained in:
parent
a1a9250b93
commit
6119d0657c
|
|
@ -95,7 +95,14 @@ pagination:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<ul class="post-list">
|
<ul class="post-list">
|
||||||
{% for post in paginator.posts %}
|
|
||||||
|
{%- if page.pagination.enabled -%}
|
||||||
|
{%- assign postlist = paginator.posts -%}
|
||||||
|
{%- else -%}
|
||||||
|
{%- assign postlist = site.posts -%}
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
|
{% for post in postlist %}
|
||||||
|
|
||||||
{% if post.external_source == blank %}
|
{% if post.external_source == blank %}
|
||||||
{% assign read_time = post.content | number_of_words | divided_by: 180 | plus: 1 %}
|
{% assign read_time = post.content | number_of_words | divided_by: 180 | plus: 1 %}
|
||||||
|
|
@ -163,6 +170,8 @@ pagination:
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% include pagination.html %}
|
{%- if page.pagination.enabled -%}
|
||||||
|
{%- include pagination.html -%}
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue