From 8368cbbd80f9dfe5539dfdf3e4b819c1228dcb22 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sat, 3 Sep 2022 03:13:50 +0530 Subject: Adds RSS Feed --- src/rss/feed.njk | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/rss/feed.njk (limited to 'src/rss') diff --git a/src/rss/feed.njk b/src/rss/feed.njk new file mode 100644 index 0000000..379f5fd --- /dev/null +++ b/src/rss/feed.njk @@ -0,0 +1,37 @@ +---json +{ + "permalink": "feed.xml", + "eleventyExcludeFromCollections": true, + "metadata": { + "title": "indrajith.dev", + "subtitle": "This site is where I write about my fun side projects, R&D's, random thoughts, game development etc.", + "language": "en", + "url": "https://indrajith.dev/", + "author": { + "name": "Indrajith K L", + "email": "indrajith@indrajith.dev" + } + } +} +--- + + + + {{ metadata.title }} + {{ metadata.url }} + + {{ metadata.subtitle }} + {{ metadata.language }} + {%- for post in collections.posts | reverse %} + {%- set absolutePostUrl = post.url | absoluteUrl(metadata.url) %} + + {{ post.data.title }} + {{ absolutePostUrl }} + {{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }} + {{ post.date | dateToRfc822 }} + {{ metadata.author.name }} + {{ absolutePostUrl }} + + {%- endfor %} + + \ No newline at end of file -- cgit v1.2.3