Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1a9250 commit 6119d06Copy full SHA for 6119d06
blog/index.html
@@ -95,7 +95,14 @@ <h3 class="card-title text-lowercase">{{ post.title }}</h3>
95
{% endif %}
96
97
<ul class="post-list">
98
- {% for post in paginator.posts %}
+
99
+ {%- if page.pagination.enabled -%}
100
+ {%- assign postlist = paginator.posts -%}
101
+ {%- else -%}
102
+ {%- assign postlist = site.posts -%}
103
+ {%- endif -%}
104
105
+ {% for post in postlist %}
106
107
{% if post.external_source == blank %}
108
{% assign read_time = post.content | number_of_words | divided_by: 180 | plus: 1 %}
@@ -163,6 +170,8 @@ <h3>
163
170
{% endfor %}
164
171
</ul>
165
172
166
- {% include pagination.html %}
173
174
+ {%- include pagination.html -%}
175
167
176
168
177
</div>
0 commit comments