Improve rss, atom xml.

This commit is contained in:
voussoir 2022-03-14 15:08:06 -07:00
parent 90dc6304bf
commit 94feb04776
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -463,7 +463,7 @@ def write_atom():
<entry> <entry>
<id>{{article.publication_id}}</id> <id>{{article.publication_id}}</id>
<title>{{article.title|e}}</title> <title>{{article.title|e}}</title>
<link rel="alternate" href="https://voussoir.net/writing/{{article.web_path}}"/> <link rel="alternate" type="text/html" href="https://voussoir.net/writing/{{article.web_path}}"/>
<updated>{{article.date}}T00:00:00Z</updated> <updated>{{article.date}}T00:00:00Z</updated>
<content type="html"> <content type="html">
<![CDATA[ <![CDATA[
@ -481,6 +481,7 @@ def write_atom():
def write_rss(): def write_rss():
rss = jinja2.Template(''' rss = jinja2.Template('''
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"> <rss version="2.0">
<channel> <channel>
<title>voussoir.net/writing</title> <title>voussoir.net/writing</title>