summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2013-05-02 22:35:20 +0200
committerSébastien Dailly <sebastien@chimrod.com>2013-05-02 22:35:20 +0200
commitfc5d0133e72b9f146bcc5e6998ea9162a1997409 (patch)
tree801a83b2b6db80ca38864ad9d5d365bc15ad15c7
parentd4a38f3e3d395d03e6ccbf6b8f4317c9848addf8 (diff)
Updated atom and rss feed broken since pelican 3.2
-rw-r--r--extras/htaccess4
-rwxr-xr-xtheme/templates/base.html8
2 files changed, 8 insertions, 4 deletions
diff --git a/extras/htaccess b/extras/htaccess
index f5647b9..408c2c5 100644
--- a/extras/htaccess
+++ b/extras/htaccess
@@ -5,3 +5,7 @@ Redirect /feed/ /feed
# On n'autorise pas le parcours des répertoires
DirectoryIndex index.html /404.htm
+
+# Flux cassé depuis la maj de pelican
+Redirect /feeds/Libre.atom /feeds/libre.atom
+Redirect /feeds/Perso.atom /feeds/perso.atom
diff --git a/theme/templates/base.html b/theme/templates/base.html
index 93ae32c..59e4619 100755
--- a/theme/templates/base.html
+++ b/theme/templates/base.html
@@ -8,19 +8,19 @@
<link href="{{ SITEURL }}/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} - Flux ATOM" />
{% if tag %}
{% if TAG_FEED_ATOM %}
- <link href="{{ SITEURL }}/{{ TAG_FEED_ATOM % tag|e }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} » {{ tag|e }} - Flux ATOM" />
+ <link href="{{ SITEURL }}/{{ TAG_FEED_ATOM % tag|e|lower }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} » {{ tag|e }} - Flux ATOM" />
{% endif %}
{% if TAG_FEED_RSS %}
- <link href="{{ SITEURL }}/{{ TAG_FEED_RSS % tag|e }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} » {{ tag }} - Flux RSS" />
+ <link href="{{ SITEURL }}/{{ TAG_FEED_RSS % tag|e|lower }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} » {{ tag }} - Flux RSS" />
{% endif %}
{% endif %}
{% if category %}
{% if CATEGORY_FEED_ATOM %}
- <link href="{{ SITEURL }}/{{ CATEGORY_FEED_ATOM % category }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} » {{ category|e }} - Flux ATOM" />
+ <link href="{{ SITEURL }}/{{ CATEGORY_FEED_ATOM % category|lower }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} » {{ category|e }} - Flux ATOM" />
{% endif %}
{% if CATEGORY_FEED_RSS %}
- <link href="{{ SITEURL }}/{{ CATEGORY_FEED_RSS % category }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} » {{ category|e }} - Flux RSS" />
+ <link href="{{ SITEURL }}/{{ CATEGORY_FEED_RSS % category|lower }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} » {{ category|e }} - Flux RSS" />
{% endif %}
{% endif %}