Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

modified: views.py

  • Loading branch information...
commit 0571c12b8ec2c39e3266bda373fba6d8e542e2fa 1 parent 0d4ab40
David authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 views.py
View
6 views.py
@@ -128,15 +128,15 @@ def GET(self):
rss = rss + '<rss version="2.0">\n'
rss = rss + '<channel>\n'
rss = rss + '<title>' + u'泥泞的沼泽' + '</title>\n'
- rss = rss + '<link>http://davidshieh.cn/</link>\n'
+ rss = rss + '<link>http://davidx.me/</link>\n'
rss = rss + '<description>' + u'泥泞的沼泽' + '</description>\n'
rss = rss + '<lastBuildDate>' + datetime.now().strftime('%a, %d %b %Y %H:%M:%S GMT') + '</lastBuildDate>\n'
rss = rss + '<language>zh-cn</language>\n'
for one in entries:
rss = rss + '<item>\n'
rss = rss + '<title>' + one.title + '</title>\n'
- rss = rss + '<link>http://davidx.me/entry/' + one.slug + '</link>\n'
- rss = rss + '<guid>http://davidx.me/entry/' + one.slug + '</guid>\n'
+ rss = rss + '<link>http://davidx.me/entry/' + one.slug + '/</link>\n'
+ rss = rss + '<guid>http://davidx.me/entry/' + one.slug + '/</guid>\n'
rss = rss + '<pubDate>' + one.createdTime.strftime('%a, %d %b %Y %H:%M:%S GMT') + '</pubDate>\n'
rss = rss + '<description>' + templatefilters.content(one.content) + '</description>\n'
rss = rss + '</item>\n'
Please sign in to comment.
Something went wrong with that request. Please try again.