1
0
Fork 0
forked from github/pelican

Replace omitted slash in feed URL generation

This slash was originally present, but I removed it at some point
because it was causing double-slashes. I believe the reason is that I
had a leading slash in my article URL pattern, which in retrospect
should not have been there. Omitting the slash caused problems for other
folks; I should have tested this better. This commit puts the slash back
where it belongs.
This commit is contained in:
Justin Mayer 2012-04-16 09:10:20 -07:00
commit e29b54e5e0

View file

@ -36,7 +36,7 @@ class Writer(object):
feed.add_item(
title=item.title,
link='%s%s' % (self.site_url, item.url),
link='%s/%s' % (self.site_url, item.url),
unique_id='tag:%s,%s:%s' % (self.site_url.replace('http://', ''),
item.date.date(), item.url),
description=item.content,