Pagination, feed update, slash pages
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<section class="postlist microblog-list">
|
||||
{% if postlistHeaderText %}<h2>{{ postlistHeaderText }}</h2>{% endif %}
|
||||
<div class="postlist-item-container">
|
||||
{% for post in postslist | reverse %}
|
||||
{% for post in postslist %}
|
||||
<article class="postlist-item">
|
||||
|
||||
<div class="post-copy">
|
||||
|
||||
12
_includes/permalinkButtons.njk
Normal file
12
_includes/permalinkButtons.njk
Normal file
@@ -0,0 +1,12 @@
|
||||
{% set numPages = pagination.pages | length %}
|
||||
{% if pagination.pageNumber > 0 %}
|
||||
<a href="/{{ paginationRootDir }}/{% if pagination.pageNumber > 1%}page-{{ pagination.pageNumber }}/{% endif %}">
|
||||
<button type="button">← Previous</button>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if pagination.pageNumber < numPages - 1 %}
|
||||
<a href="/{{ paginationRootDir }}/page-{{ pagination.pageNumber + 2 }}/">
|
||||
<button type="button">{% if pagination.pageNumber == 0%}More{% else %}Next{% endif %} →</button>
|
||||
</a>
|
||||
{% endif %}
|
||||
@@ -1,7 +1,7 @@
|
||||
<section class="postlist{% if postListTypeMicroblog %} microblogList{% endif %}">
|
||||
{% if postlistHeaderText %}<h2>{{ postlistHeaderText }}</h2>{% endif %}
|
||||
<div class="postlist-item-container">
|
||||
{% for post in postslist | reverse %}
|
||||
{% for post in postslist %}
|
||||
<article class="postlist-item{% if post.url == url %} postlist-item-active{% endif %}">
|
||||
|
||||
{% if not postListTypeMicroblog %}
|
||||
|
||||
Reference in New Issue
Block a user