Add current date to "gardening the commons"
This commit is contained in:
parent
545bf1f8be
commit
6797d9ebda
2 changed files with 13 additions and 1 deletions
11
src/_includes/gardening.njk
Normal file
11
src/_includes/gardening.njk
Normal 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 %}
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue