Add current date to "gardening the commons"

This commit is contained in:
arne 2023-08-10 10:52:07 +02:00
commit 6797d9ebda
2 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,11 @@
{% extends "posts.njk" %}
{% block metadata %}
<ul>
<li>Published on <time datetime="{{page.date}}">{{page.date | toISODate}}</time></li>
{%- if commit.date and ((commit.date | toISODate) !== (page.date | toISODate)) -%}
<li>Text last updated on <a href="{{page.repo}}/commit/{{commit.hash}}"><time datetime="{{commit.date}}">{{commit.date | toISODate}}</time></a></li>
{%- endif -%}
<li>Numbers last fetched on {{now | toISODate}}</li>
</ul>
{% endblock %}

View file

@ -43,7 +43,8 @@ module.exports = async _config => {
} }
return { return {
layout: "posts.njk", layout: "gardening.njk",
now: new Date(),
listenBrainz, listenBrainz,
musicBrainz, musicBrainz,
openStreetMap, openStreetMap,