diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2024-04-13 22:30:52 -0600 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2024-04-13 22:30:52 -0600 |
commit | 2067f0f691b04ddb9c5da4c5a0ae80a9dce3729f (patch) | |
tree | bfb87dc00588ea014ada8ef554433144cd0871fa /templates/feed.rss | |
parent | 20b5325961051e4f49b7ce7303a6b918f0086e8f (diff) |
begin move to atom
Diffstat (limited to 'templates/feed.rss')
-rw-r--r-- | templates/feed.rss | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/templates/feed.rss b/templates/feed.rss index 275168a..90c2dbf 100644 --- a/templates/feed.rss +++ b/templates/feed.rss @@ -1,27 +1,29 @@ -<?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 +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + <title>{{ feed.title}}</title> + <link rel="alternate" type="text/html" href="{{ feed.link }}"/> + <link rel="self" type="application/atom+xml" href="{{ feed.link }}feed.rss"/> + <subtitle>{{ feed.description }}</subtitle> + <updated>{{ feed.date }}</updated> + <author> + <name>Navan Chauhan</name> + </author> + <id>{{ feed.link }}</id> +{% for post in posts %} + <entry> + <title>{{post.metadata.title}}</title> + <link type="text/html" href="{{post.metadata.link}}" /> + <id>{{post.metadata.link}}</id> + <published>{{post.metadata.date}}</published> + <updated>{{post.metadata.date}}</updated> + <summary>{{post.metadata.description}}</summary> + <content type="html"> + <![CDATA[{{post}}]]> + </content> + <author> + <name>Navan Chauhan</name> + <email>blog@navan.email</email> + </author> + </entry> +{% endfor %} +</feed>
\ No newline at end of file |