add last modified and copyright to page

This commit is contained in:
Adora Laura Kalb 2023-06-04 20:03:32 +02:00
parent ef747dd9c3
commit 89a9319cb7
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056
2 changed files with 11 additions and 1 deletions

View file

@ -10,6 +10,10 @@ module.exports = function(eleventyConfig) {
return DateTime.fromJSDate(value).toLocaleString(DateTime.DATETIME_FULL) return DateTime.fromJSDate(value).toLocaleString(DateTime.DATETIME_FULL)
}); });
eleventyConfig.addFilter("copyrightyear", function() {
return DateTime.Now().toLocaleString({ year: 'numeric'})
});
return { return {
passthroughFileCopy: true passthroughFileCopy: true
} }

View file

@ -2,6 +2,7 @@
layout: layouts/home.njk layout: layouts/home.njk
title: "lauka.net" title: "lauka.net"
eleventyExcludeFromCollections: true eleventyExcludeFromCollections: true
date: Last Modified
--- ---
<h1>{{ title }}</h1> <h1>{{ title }}</h1>
@ -50,6 +51,9 @@ eleventyExcludeFromCollections: true
that I already have worked on or that I want to work on in the future. that I already have worked on or that I want to work on in the future.
</p> </p>
<ul> <ul>
<li>
<a href="/interesting-stuff" target="_blank">A list of awesome projects curated by me!</a>
</li>
<li>building my own IPAM with <a href="https://go.dev/" target="_blank">Golang</a>. <li>building my own IPAM with <a href="https://go.dev/" target="_blank">Golang</a>.
Source: <a href="https://codeberg.org/lauralani/ipam" target="_blank">https://codeberg.org/lauralani/ipam</a> Source: <a href="https://codeberg.org/lauralani/ipam" target="_blank">https://codeberg.org/lauralani/ipam</a>
(still in development, but has a lot of features already! :) (still in development, but has a lot of features already! :)
@ -99,6 +103,8 @@ eleventyExcludeFromCollections: true
<br/><br/> <br/><br/>
This page makes due without any cookies, frontend javascript, tracking and databases This page makes due without any cookies, frontend javascript, tracking and databases
in the effort to make the web quick and usable again :) in the effort to make the web quick and usable again :)
<br/>This page was last updated at {{ page.date | timestamp }}
<br/><br/>
Copyright Laura Kalb {{ copyrightyear }}
<br/><br/><a href="/impressum.html">Impressum und Datenschutzerklärung</a> <br/><br/><a href="/impressum.html">Impressum und Datenschutzerklärung</a>
</p> </p>