-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug. Links Tag and category feeds are not generated correctly
This is due to compatibility issue with Jinja2. See here for details getpelican/pelican#2442 (comment)
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{% if CATEGORY_FEED_ATOM %} | ||
{% for category in categories %} | ||
{% set cat_name = category[0].slug %} | ||
<link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(slug=cat_name) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags|e }} - {{category[0]}} Category Atom Feed" /> | ||
<link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM.format(slug=cat_name) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags|e }} - {{category[0]}} Category Atom Feed" /> | ||
{% endfor %} | ||
{% endif %} | ||
{% if CATEGORY_FEED_RSS %} | ||
{% for category in categories %} | ||
{% set cat_name = category[0].slug %} | ||
<link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS|format(slug=cat_name) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags|e }} - {{category[0]}} Category RSS Feed" /> | ||
<link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS.format(slug=cat_name) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags|e }} - {{category[0]}} Category RSS Feed" /> | ||
{% endfor %} | ||
{% endif %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{% if TAG_FEED_ATOM %} | ||
{% for tag in tags %} | ||
{% set tag_name = tag[0].slug %} | ||
<link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM|format(slug=tag_name) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags|e }} - {{tag[0]}} Tag Atom Feed" /> | ||
<link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM.format(slug=tag_name) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags|e }} - {{tag[0]}} Tag Atom Feed" /> | ||
{% endfor %} | ||
{% endif %} | ||
{% if TAG_FEED_RSS %} | ||
{% for tag in tags %} | ||
{% set tag_name = tag[0].slug %} | ||
<link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS|format(slug=tag_name) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags|e }} - {{tag[0]}} Tag RSS Feed" /> | ||
<link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS.format(slug=tag_name) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME|striptags|e }} - {{tag[0]}} Tag RSS Feed" /> | ||
{% endfor %} | ||
{% endif %} |