Skip to content

Commit 2c75b46

Browse files
committed
Tidy up rss feed xml
1 parent 5330422 commit 2c75b46

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

templates/rss.mako

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
## -*- coding: utf-8 -*-
2-
<?xml version="1.0" encoding="UTF-8"?><% from datetime import datetime %>
2+
<?xml version="1.0" encoding="UTF-8"?><% from datetime import datetime, UTC %>
33
<rss version="2.0"
44
xmlns:content="http://purl.org/rss/1.0/modules/content/"
55
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
66
xmlns:atom="http://www.w3.org/2005/Atom"
7-
xmlns:dc="http://purl.org/dc/elements/1.1/"
8-
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
97
>
108
<channel>
119
<title>${site_name}</title>
1210
<link>${site_domain}</link>
1311
<description>Blog of Peter Parente</description>
14-
<pubDate>${datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT")}</pubDate>
15-
<generator>custom</generator>
16-
<sy:updatePeriod>hourly</sy:updatePeriod>
12+
<pubDate>${datetime.now(UTC).strftime("%a, %d %b %Y %H:%M:%S GMT")}</pubDate>
13+
<generator>https://github.com/parente/blog</generator>
14+
<sy:updatePeriod>daily</sy:updatePeriod>
1715
<sy:updateFrequency>1</sy:updateFrequency>
16+
<atom:link href="${site_domain}/rss.xml" rel="self" type="application/rss+xml" />
1817
% for page in latest_pages:
1918
<item>
2019
<title>${page['title']}</title>
2120
<link>${site_domain}${site_root}/${page['slug']}/</link>
22-
<pubDate>${page['date'].strftime("%a, %d %b %Y %H:%M:%S %Z")}</pubDate>
21+
<pubDate>${page['date'].strftime("%a, %d %b %Y %H:%M:%S GMT")}</pubDate>
2322
<guid>${site_domain}${site_root}/${page['slug']}/</guid>
2423
<description>${page['title']}</description>
2524
<content:encoded><![CDATA[${page['excerpt']}]]></content:encoded>

0 commit comments

Comments
 (0)