Implement status function
This commit is contained in:
26
content/prior-thoughts/index.njk
Normal file
26
content/prior-thoughts/index.njk
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
layout: layouts/base.njk
|
||||
title: "Nathan Upchurch | Prior Thoughts"
|
||||
pagination:
|
||||
data: collections.priorThoughts
|
||||
generatePageOnEmptyData: true
|
||||
size: 20
|
||||
permalink: "prior-thoughts/{% if pagination.pageNumber > 0 %}page-{{ pagination.pageNumber + 1 }}/{% endif %}index.html"
|
||||
paginationRootDir: prior-thoughts
|
||||
---
|
||||
<h1>Prior thoughts:</h1>
|
||||
|
||||
{% set postsCount = pagination.items | length %}
|
||||
{% if postsCount > 0 %}
|
||||
{% set postslist = pagination.items %}
|
||||
{% set showPostListHeader = false %}
|
||||
{% include "statusList.njk" %}
|
||||
{% else %}
|
||||
<p>Nothing’s here yet!</p>
|
||||
{% endif %}
|
||||
|
||||
{% include "permalinkButtons.njk" %}
|
||||
|
||||
<a href="/status/">
|
||||
<button type="button">Latest »</button>
|
||||
</a>
|
||||
Reference in New Issue
Block a user