Pagination, feed update, slash pages

This commit is contained in:
2025-12-13 17:25:52 -06:00
parent c5ce302fee
commit 33f73f81ed
16 changed files with 101 additions and 17 deletions

View File

@@ -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>Nothings here yet!</p>
{% endif %}
{% include "permalinkButtons.njk" %}
<a href="/now-burning/">
<button type="button">Latest »</button>
</a>