Pagination, feed update, slash pages
This commit is contained in:
@@ -2,8 +2,15 @@
|
||||
layout: layouts/base.njk
|
||||
title: "The Stochastic Bletherist | The Personal Blog of Nathan Upchurch"
|
||||
structuredData: none
|
||||
postlistHeaderText: "What’s 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>What’s 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" %}
|
||||
|
||||
Reference in New Issue
Block a user