|
1 | 1 | ## -*- 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 %> |
3 | 3 | <rss version="2.0" |
4 | 4 | xmlns:content="http://purl.org/rss/1.0/modules/content/" |
5 | 5 | xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" |
6 | 6 | 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/" |
9 | 7 | > |
10 | 8 | <channel> |
11 | 9 | <title>${site_name}</title> |
12 | 10 | <link>${site_domain}</link> |
13 | 11 | <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> |
17 | 15 | <sy:updateFrequency>1</sy:updateFrequency> |
| 16 | + <atom:link href="${site_domain}/rss.xml" rel="self" type="application/rss+xml" /> |
18 | 17 | % for page in latest_pages: |
19 | 18 | <item> |
20 | 19 | <title>${page['title']}</title> |
21 | 20 | <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> |
23 | 22 | <guid>${site_domain}${site_root}/${page['slug']}/</guid> |
24 | 23 | <description>${page['title']}</description> |
25 | 24 | <content:encoded><![CDATA[${page['excerpt']}]]></content:encoded> |
|
0 commit comments