python - Fixing validation errors in Pelican RSS Feeds -


i using pelican 3.2 generate blog rss feeds. however, running rss feed through w3c's feed validator raises following errors:

guid must full url, unless ispermalink attribute false 

one of offending lines is

<guid>tag:foo,2013-08-07:bar.html</guid> 

it appears pelican uses feedgenerator, couldn't find relevant configuration options.

how should fix this?

i believe solution modify feedgenerator, changing:

handler.addquickelement("guid", item['unique_id']) 

...to:

handler.addquickelement('guid ispermalink="false"', item['unique_id']) 

rss has link attribute; feedgenerator assumes unique_id url , should not so. suspect best way address problem.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -