Skip to content

Commit

Permalink
Fixing section RSS path.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Dec 2, 2016
1 parent dbf252a commit 91b1f05
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nikola/plugins/task/sections.py
Expand Up @@ -81,7 +81,11 @@ def get_classification_friendly_name(self, section, lang, only_last_component=Fa

def get_path(self, section, lang, type='page'):
"""A path handler for the given classification."""
return [_f for _f in [section] if _f], 'always'
result = [_f for _f in [section] if _f]
if type == 'rss':
return result + ['rss'], 'never'
else:
return result, 'always'

def provide_context_and_uptodate(self, section, lang, node=None):
"""Provide data for the context and the uptodate list for the list of the given classifiation."""
Expand Down

0 comments on commit 91b1f05

Please sign in to comment.