{% endif %}
{% if category %}
{% if CATEGORY_FEED_ATOM_URL %}
- <link href="{{ CATEGORY_FEED_ATOM_URL|format(category.slug)|format_siteurl }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|e }} | {{ category|e }}" />
+ <link href="{{ CATEGORY_FEED_ATOM_URL.format(slug=category.slug)|format_siteurl }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|e }} | {{ category|e }}" />
{% elif CATEGORY_FEED_ATOM %}
- <link href="{{ CATEGORY_FEED_ATOM|format(category.slug)|format_siteurl }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|e }} | {{ category|e }}" />
+ <link href="{{ CATEGORY_FEED_ATOM.format(slug=category.slug)|format_siteurl }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|e }} | {{ category|e }}" />
{% endif %}
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
'M_DISABLE_SOCIAL_META_TAGS': True,
'FEED_ALL_ATOM': 'atom.xml',
'FEED_ALL_ATOM_URL': 'feeds/atom.xml',
- 'CATEGORY_FEED_ATOM': '%s.atom.xml',
- 'CATEGORY_FEED_ATOM_URL': 'feeds/%s.atom.xml',
+ 'CATEGORY_FEED_ATOM': '{slug}.atom.xml',
+ 'CATEGORY_FEED_ATOM_URL': 'feeds/{slug}.atom.xml',
})
# There should be just the first column
self.run_pelican({
'M_DISABLE_SOCIAL_META_TAGS': True,
'FEED_ALL_ATOM': 'feeds/atom.xml',
- 'CATEGORY_FEED_ATOM': 'feeds/%s.atom.xml',
+ 'CATEGORY_FEED_ATOM': 'feeds/{slug}.atom.xml',
})
# The feed URLs should be the same as above