diff options
author | Indrajith K L | 2022-09-03 03:18:54 +0530 |
---|---|---|
committer | Indrajith K L | 2022-09-03 03:18:54 +0530 |
commit | cd8c2850aa47849e62ac2be233a9374b44a1f890 (patch) | |
tree | a6333f4014b34c086be09ffd78ab93ea7b14d405 /src | |
parent | 8368cbbd80f9dfe5539dfdf3e4b819c1228dcb22 (diff) | |
download | indrajith-dev-cd8c2850aa47849e62ac2be233a9374b44a1f890.tar.gz indrajith-dev-cd8c2850aa47849e62ac2be233a9374b44a1f890.tar.bz2 indrajith-dev-cd8c2850aa47849e62ac2be233a9374b44a1f890.zip |
Code Formatting :art:
Diffstat (limited to 'src')
-rw-r--r-- | src/rss/feed.njk | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/rss/feed.njk b/src/rss/feed.njk index 379f5fd..9921751 100644 --- a/src/rss/feed.njk +++ b/src/rss/feed.njk @@ -1,37 +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" + "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" + } } - } } --- <?xml version="1.0" encoding="utf-8"?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="{{ metadata.url }}" xmlns:atom="http://www.w3.org/2005/Atom"> - <channel> - <title>{{ metadata.title }}</title> - <link>{{ metadata.url }}</link> - <atom:link href="{{ permalink | absoluteUrl(metadata.url) }}" rel="self" type="application/rss+xml" /> - <description>{{ metadata.subtitle }}</description> - <language>{{ metadata.language }}</language> - {%- for post in collections.posts | reverse %} - {%- set absolutePostUrl = post.url | absoluteUrl(metadata.url) %} - <item> - <title>{{ post.data.title }}</title> - <link>{{ absolutePostUrl }}</link> - <description>{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</description> - <pubDate>{{ post.date | dateToRfc822 }}</pubDate> - <dc:creator>{{ metadata.author.name }}</dc:creator> - <guid>{{ absolutePostUrl }}</guid> - </item> - {%- endfor %} - </channel> + <channel> + <title>{{ metadata.title }}</title> + <link>{{ metadata.url }}</link> + <atom:link href="{{ permalink | absoluteUrl(metadata.url) }}" rel="self" type="application/rss+xml" /> + <description>{{ metadata.subtitle }}</description> + <language>{{ metadata.language }}</language> + {%- for post in collections.posts | reverse %} + {%- set absolutePostUrl = post.url | absoluteUrl(metadata.url) %} + <item> + <title>{{ post.data.title }}</title> + <link>{{ absolutePostUrl }}</link> + <description>{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</description> + <pubDate>{{ post.date | dateToRfc822 }}</pubDate> + <dc:creator>{{ metadata.author.name }}</dc:creator> + <guid>{{ absolutePostUrl }}</guid> + </item> + {%- endfor %} + </channel> </rss>
\ No newline at end of file |