summaryrefslogtreecommitdiff
path: root/templates/feed.rss
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-05-26 23:58:29 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-05-26 23:58:29 +0530
commitbfd3a825c2d73bd842769cdfaf11ad0319a3bd6e (patch)
tree7b2c052bdf539f433ed3ab6bd133b6d46c7ff7e5 /templates/feed.rss
parent2cb28c0dd749611e6edd4688955769bda3381453 (diff)
added code and content
Diffstat (limited to 'templates/feed.rss')
-rw-r--r--templates/feed.rss27
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/feed.rss b/templates/feed.rss
new file mode 100644
index 0000000..275168a
--- /dev/null
+++ b/templates/feed.rss
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content">
+ <channel>
+ <title>{{ feed.title}}</title>
+ <description>{{ feed.description }}</description>
+ <link>{{ feed.link }}</link><language>en</language>
+ <lastBuildDate>{{ feed.date }}</lastBuildDate>
+ <pubDate>{{ feed.date }}</pubDate>
+ <ttl>250</ttl>
+ <atom:link href="https://web.navan.dev/feed.rss" rel="self" type="application/rss+xml"/>
+ {% for post in posts %}
+ <item>
+ <guid isPermaLink="true">
+ {{post.metadata.link}}
+ </guid>
+ <title>
+ {{post.metadata.title}}
+ </title>
+ <description>
+ {{post.metadata.description}}
+ </description>
+ <link>{{post.metadata.link}}</link>
+ <pubDate>{{post.metadata.date}}</pubDate>
+ <content:encoded><![CDATA[{{post}}]]></content:encoded>
+ </item>
+ {% endfor %}
+</channel></rss> \ No newline at end of file