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 | |
parent | 20b5325961051e4f49b7ce7303a6b918f0086e8f (diff) |
begin move to atom
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 2 | ||||
-rw-r--r-- | templates/feed.rss | 56 |
2 files changed, 30 insertions, 28 deletions
diff --git a/templates/base.html b/templates/base.html index c19bcff..1a3e938 100644 --- a/templates/base.html +++ b/templates/base.html @@ -32,7 +32,7 @@ <meta name="twitter:card" content="{% block twitter2description %}summary_large_image{% endblock %}" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="shortcut icon" href="/images/favicon.png" type="image/png" /> - <link rel="alternate" href="/feed.rss" type="application/rss+xml" title="Subscribe to Navan Chauhan" /> + <link href="/feed.rss" type="application/atom+xml" rel="alternate" title="Sitewide Atom feed" /> <meta name="twitter:image" content="{% block twimage %}https://web.navan.dev/images/logo.png{% endblock %}" /> <meta name="og:image" content="{% block ogimage %}https://web.navan.dev/images/logo.png{% endblock %}" /> <meta name="google-site-verification" content="LVeSZxz-QskhbEjHxOi7-BM5dDxTg53x2TwrjFxfL0k" /> 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 |