Pagination, feed update, slash pages
This commit is contained in:
@@ -2,18 +2,26 @@
|
||||
layout: layouts/base.njk
|
||||
title: "Nathan Upchurch | Once Burned: Incense I've burning in the past."
|
||||
structuredData: none
|
||||
pagination:
|
||||
data: collections.onceBurned
|
||||
generatePageOnEmptyData: true
|
||||
size: 20
|
||||
permalink: "once-burned/{% if pagination.pageNumber > 0 %}page-{{ pagination.pageNumber + 1 }}/{% endif %}index.html"
|
||||
paginationRootDir: once-burned
|
||||
---
|
||||
{% set burning = collections.nowBurning | last %}
|
||||
|
||||
<h1>Previous “Now Burning” Entries:</h1>
|
||||
{% set postsCount = collections.nowBurning | removeMostRecent | length %}
|
||||
|
||||
{% set postsCount = pagination.items | length %}
|
||||
{% if postsCount > 0 %}
|
||||
{% set postslist = collections.nowBurning | removeMostRecent %}
|
||||
{% set postslist = pagination.items %}
|
||||
{% set showPostListHeader = false %}
|
||||
{% include "incenseList.njk" %}
|
||||
{% else %}
|
||||
<p>Nothing’s here yet!</p>
|
||||
{% endif %}
|
||||
|
||||
{% include "permalinkButtons.njk" %}
|
||||
|
||||
<a href="/now-burning/">
|
||||
<button type="button">Latest »</button>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user