Improve rss, atom xml.
This commit is contained in:
parent
90dc6304bf
commit
94feb04776
1 changed files with 2 additions and 1 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue