From 30a031edc5c5f161ba487822a4adb3c60a9864b1 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Sun, 10 Sep 2023 07:49:49 -0300 Subject: Initial commit --- feed.njk | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 feed.njk (limited to 'feed.njk') diff --git a/feed.njk b/feed.njk new file mode 100644 index 0000000..dcadf9c --- /dev/null +++ b/feed.njk @@ -0,0 +1,42 @@ +---json +{ + "permalink": "feed.xml", + "eleventyExcludeFromCollections": true, + "metadata": { + "title": "Mu", + "subtitle": "Thoughts, meditations and more.", + "language": "en", + "url": "https://u1d6b3.site", + "author": { + "name": "Marc Coquand", + "email": "marcc0000@pm.me" + } + } +} +--- + + + {{ metadata.title }} + {{ metadata.subtitle }} + + + {{ collections.posts | getNewestCollectionItemDate | dateToRfc3339 }} + {{ metadata.url }} + + {{ metadata.author.name }} + {{ metadata.author.email }} + + + {%- for post in collections.post | reverse %} + {%- set absolutePostUrl = post.url | absoluteUrl(metadata.url) %} + + {{ post.data.title }} + + {{ post.date | dateToRfc3339 }} + {{ absolutePostUrl }} + + {{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }} + + + {%- endfor %} + -- cgit v1.2.3