mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add unique_id to RSS/ATOM feeds.
Reason:
Without <guid> tag in RSS XML, some RSS reader will show all
items in RSS as unread item.
This commit is contained in:
parent
fb9a622ca7
commit
b2919e9051
1 changed files with 1 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ class Writer(object):
|
||||||
feed.add_item(
|
feed.add_item(
|
||||||
title=item.title,
|
title=item.title,
|
||||||
link='%s/%s' % (self.site_url, item.url),
|
link='%s/%s' % (self.site_url, item.url),
|
||||||
|
unique_id='%s/%s' % (self.site_url, item.url),
|
||||||
description=item.content,
|
description=item.content,
|
||||||
categories=item.tags if hasattr(item, 'tags') else None,
|
categories=item.tags if hasattr(item, 'tags') else None,
|
||||||
author_name=getattr(item, 'author', 'John Doe'),
|
author_name=getattr(item, 'author', 'John Doe'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue