Implement status function
This commit is contained in:
@@ -4,6 +4,8 @@ title: Nathan Upchurch | Changelog
|
||||
structuredData: none
|
||||
---
|
||||
# Changelog
|
||||
* 2026-01-07
|
||||
* Added [status](/status) function.
|
||||
* 2026-01-01
|
||||
* Added [/slashes](/slashes).
|
||||
* Updated [/sitemap](/sitemap).
|
||||
|
||||
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>
|
||||
@@ -24,9 +24,11 @@ structuredData: none
|
||||
* [Now](/now)
|
||||
* [Now Burning](/now-burning)
|
||||
* [Once Burned](/once-burned)
|
||||
* [Prior Thoughts](/prior-thoughts)
|
||||
* [Referrals](/referrals)
|
||||
* [Slashes](/slashes)
|
||||
* Special
|
||||
* [Flying Toasters](/special/flying-toasters)
|
||||
* [Status](/status)
|
||||
* [Wishes](/wish)
|
||||
* [Quizzes](/quizzes)
|
||||
|
||||
42
content/status/index.njk
Normal file
42
content/status/index.njk
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
eleventyExcludeFromCollections: true
|
||||
layout: layouts/base.njk
|
||||
title: "Nathan Upchurch | Status: What I'm thinking at the moment."
|
||||
structuredData: none
|
||||
permalink: "/status/index.html"
|
||||
---
|
||||
{% set status = collections.status | last %}
|
||||
|
||||
<h1>Nathan’s status:</h1>
|
||||
<article class="post microblog-post">
|
||||
<div class="microblog-status card">
|
||||
<span class="microblog-emoji">{{ status.data.emoji }}</span>
|
||||
|
||||
<div class="microblog-status-copy">
|
||||
<p>
|
||||
<span class="status-metadata">
|
||||
{% if metadata.author.url %}
|
||||
<a href="{{ metadata.author.url }}">
|
||||
{% endif %}
|
||||
|
||||
{% if metadata.author.name %}
|
||||
{{ metadata.author.name }}
|
||||
{% endif %}
|
||||
|
||||
{% if metadata.author.url %}
|
||||
</a><br />
|
||||
{% endif %}
|
||||
</span>
|
||||
|
||||
{{ status.data.comment }}<br />
|
||||
|
||||
<span class="status-metadata">
|
||||
{{ status.date | niceDate }}
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
<a href="/prior-thoughts/">
|
||||
<button type="button">Previous Entries »</button>
|
||||
</a>
|
||||
6
content/status/status.11tydata.js
Normal file
6
content/status/status.11tydata.js
Normal file
@@ -0,0 +1,6 @@
|
||||
export default {
|
||||
tags: ["status"],
|
||||
layout: "layouts/base.njk",
|
||||
permalink: false,
|
||||
structuredData: "none",
|
||||
};
|
||||
5
content/status/test.md
Normal file
5
content/status/test.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
date: 2026-01-07 12:23:00
|
||||
emoji: 🤔
|
||||
comment: "Can we not do world war three, please?"
|
||||
---
|
||||
Reference in New Issue
Block a user