Make 'alternate' to the default rel value.
This commit is contained in:
parent
ca860363e8
commit
b4a68f431d
1 changed files with 2 additions and 1 deletions
|
@ -405,7 +405,8 @@ class FeedEntry(object):
|
||||||
self.__atom_link += ensure_format( link,
|
self.__atom_link += ensure_format( link,
|
||||||
set(['href', 'rel', 'type', 'hreflang', 'title', 'length']),
|
set(['href', 'rel', 'type', 'hreflang', 'title', 'length']),
|
||||||
set(['href']),
|
set(['href']),
|
||||||
{'rel':['alternate', 'enclosure', 'related', 'self', 'via']} )
|
{'rel':['alternate', 'enclosure', 'related', 'self', 'via']},
|
||||||
|
{'rel': 'alternate'} )
|
||||||
# RSS only needs one URL. We use the first link for RSS:
|
# RSS only needs one URL. We use the first link for RSS:
|
||||||
for l in self.__atom_link:
|
for l in self.__atom_link:
|
||||||
if l.get('rel') == 'alternate':
|
if l.get('rel') == 'alternate':
|
||||||
|
|
Loading…
Reference in a new issue