add PuSH link to atom.xml

This commit is contained in:
Matt Domsch 2010-06-15 12:26:15 -05:00 committed by Sam Ruby
parent fdb91411dc
commit 7c595c60f3

View File

@ -44,6 +44,12 @@ def splice():
link.setAttribute('type', "application/%s+xml" % config.feedtype()) link.setAttribute('type', "application/%s+xml" % config.feedtype())
feed.appendChild(link) feed.appendChild(link)
if config.pubsubhubbub_hub():
hub = doc.createElement('link')
hub.setAttribute('rel', 'hub')
hub.setAttribute('href', config.pubsubhubbub_hub())
feed.appendChild(hub)
if config.link(): if config.link():
link = doc.createElement('link') link = doc.createElement('link')
link.setAttribute('rel', 'alternate') link.setAttribute('rel', 'alternate')