feat: add published date to posts

This commit is contained in:
b12f 2025-01-14 21:12:18 +01:00
parent dd8528f758
commit ee541a3384
Signed by: b12f
GPG key ID: 729956E1124F8F26
5 changed files with 21 additions and 2 deletions

View file

@ -1,12 +1,17 @@
import lume from "lume/mod.ts";
import inline from "lume/plugins/inline.ts";
import postcss from "lume/plugins/postcss.ts";
import date from "lume/plugins/date.ts";
import { enUS, de } from "npm:date-fns/locale";
const markdown = { options: { breaks: true } };
const site = lume({}, { markdown });
site.use(inline());
site.use(date({
locales: { en: enUS, de },
}));
const languages = [
{

View file

@ -1,5 +1,7 @@
{{ layout 'default.vto' }}
<main class="mi-main mi-main_content">
<p>{{ published |> date("HUMAN_DATE", language.slug) }}</p>
<h1>{{ title }}</h1>
{{ content |> safe }}

12
deno.lock generated
View file

@ -36,6 +36,8 @@
"jsr:@std/yaml@^0.224.1": "jsr:@std/yaml@0.224.1",
"npm:@js-temporal/polyfill@0.4.4": "npm:@js-temporal/polyfill@0.4.4",
"npm:autoprefixer@10.4.19": "npm:autoprefixer@10.4.19_postcss@8.4.38",
"npm:date-fns": "npm:date-fns@4.1.0",
"npm:date-fns@3.6.0": "npm:date-fns@3.6.0",
"npm:estree-walker@3.0.3": "npm:estree-walker@3.0.3",
"npm:markdown-it-attrs@4.1.6": "npm:markdown-it-attrs@4.1.6_markdown-it@14.1.0",
"npm:markdown-it-deflist@3.0.0": "npm:markdown-it-deflist@3.0.0",
@ -192,6 +194,14 @@
"integrity": "sha512-c3dl911slnQhmxUIT4HhYzT7wnBK/XYpGnYLOj4nJBaRiw52Ibe7YxlDaAeRECvA786zCuExhxIUJ2K7nHMrBw==",
"dependencies": {}
},
"date-fns@3.6.0": {
"integrity": "sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==",
"dependencies": {}
},
"date-fns@4.1.0": {
"integrity": "sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==",
"dependencies": {}
},
"electron-to-chromium@1.4.795": {
"integrity": "sha512-hHo4lK/8wb4NUa+NJYSFyJ0xedNHiR6ylilDtb8NUW9d4dmBFmGiecYEKCEbti1wTNzbKXLfl4hPWEkAFbHYlw==",
"dependencies": {}
@ -608,6 +618,7 @@
"https://deno.land/x/lume@v2.2.1/deps/cliffy.ts": "faff0c2ca187ec9fd1ad8660141f85b9d05b5c36bab25b40eb5038c02590a310",
"https://deno.land/x/lume@v2.2.1/deps/colors.ts": "1c249ff668b7814caab1688f5781d3a32957613caa5bbcb3aef90a4667ec9a99",
"https://deno.land/x/lume@v2.2.1/deps/crypto.ts": "b02a4e2d950675a71eee2d4982c775fbaac17ee7c200d2addc35cb72e38dafae",
"https://deno.land/x/lume@v2.2.1/deps/date.ts": "fdd2d83d96ff02b486aca730e6fef1c687422c950ecc537c17775c758bd1851a",
"https://deno.land/x/lume@v2.2.1/deps/dom.ts": "7f47d1462127c62ecc8571434fe55639a5a3936ecb8b38476cf560e2b1283da2",
"https://deno.land/x/lume@v2.2.1/deps/front_matter.ts": "5e5bc49e1be519fa3eb52f7a69a61e2d99a9b5f14fa59f1019c99c14b6c688c3",
"https://deno.land/x/lume@v2.2.1/deps/fs.ts": "a853d90b80715e98136a5bd901a961782e5f106e3e6598206b3b4b370c3226a2",
@ -631,6 +642,7 @@
"https://deno.land/x/lume@v2.2.1/middlewares/reload.ts": "c9999bdd52e18e85a1634659506542ce0e942cc91b69e3fc9887cabf23ca4592",
"https://deno.land/x/lume@v2.2.1/middlewares/reload_client.js": "34d75e01503fae8180796de882af42b1125fac88f22a010a99d5548de1ba7d72",
"https://deno.land/x/lume@v2.2.1/mod.ts": "0f7afe1e73472bee8fb6dc21d616f9c055a1cffd3a3744f2005b8a6ccfbf8aed",
"https://deno.land/x/lume@v2.2.1/plugins/date.ts": "52c0928ad1e828ea3249af7d7f09eeca30b95d572967f31b97828fd419b7ff71",
"https://deno.land/x/lume@v2.2.1/plugins/inline.ts": "8e7e1e83a0c1700d8306acab0bb4b30fbcfae0a84548271e4696bdbcc2c4d28f",
"https://deno.land/x/lume@v2.2.1/plugins/json.ts": "f6429bbd865e3666ef3385fd205fcc92df02ca2c0f74f20baa5c0798a81e1642",
"https://deno.land/x/lume@v2.2.1/plugins/markdown.ts": "b0f224dcffa0abeb30af178d7ec21f50515c2a7ccd42a3347aac3bea53c4ca27",

View file

@ -1,7 +1,7 @@
---
layout: text.vto
title: Statement regarding the use of our address by Parler
date: 2025-01-14
published: 2025-01-14
---
Our association has been made aware by [OpenTermsArchive](https://opentermsarchive.org) that the American company [Parler](https://en.wikipedia.org/wiki/Parler) has listed our creative space as its German address on its website as of this morning. OpenTermsArchive has also published a [press statement](https://opentermsarchive.org/en/memos/parler-opens-address-germany/) about this.

View file

@ -1,7 +1,7 @@
---
layout: text.vto
title: Statement bezüglich der Benutzung unserer Adresse durch Parler
date: 2025-01-14
published: 2025-01-14
---
Unser Verein wurde durch [OpenTermsArchive](https://opentermsarchive.org) darauf aufmerksam gemacht, dass das amerikanische Unternehmen [Parler](https://de.wikipedia.org/wiki/Parler) seit heute Morgen unseren Kreativraum als seine deutsche Adresse auf seiner Website führt. OpenTermsArchive hat hierzu auch ein [Pressestatement](https://opentermsarchive.org/en/memos/parler-opens-address-germany.de/) veröffentlicht.