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,8 +2,15 @@
layout: layouts/base.njk
title: "The Stochastic Bletherist | The Personal Blog of Nathan Upchurch"
structuredData: none
postlistHeaderText: "Whats New:"
pagination:
data: collections.posts
generatePageOnEmptyData: true
size: 10
reverse: true
permalink: "blog/{% if pagination.pageNumber > 0 %}page-{{ pagination.pageNumber + 1 }}/{% endif %}index.html"
paginationRootDir: blog
---
{% if pagination.pageNumber == 0 %}
<h1>The Stochastic Bletherist</h1>
<p class="page-block nodropcap">
@@ -16,5 +23,25 @@ The personal blog of Nathan Upchurch, where he writes about everything from <a h
<button type="button">Blogroll »</button>
</a>
</p>
{% set postslist = collections.posts %}
<h2>Whats New:</h2>
{% else %}
<h1>The Stochastic Bletherist Blog</h1>
<p class="page-block nodropcap">
Writing about everything from <a href="/tags/storytime">personal stories</a> to <a href="/tags/gnu-linux">tech</a>, <a href="/tags/vegan-cooking">food</a>, and <a href="/tags/incense">incense</a>.<br />
<a href="/tags/">
<button type="button">Topics »</button>
</a>
<a href="../blogroll/">
<button type="button">Blogroll »</button>
</a>
</p>
<h2>More posts:</h2>
{% endif %}
{% set postslist = pagination.items %}
{% include "postslist.njk" %}
{% include "permalinkButtons.njk" %}