Skip to content
Permalink
Browse files

Fixing section RSS path.

  • Loading branch information
felixfontein committed Dec 2, 2016
1 parent dbf252a commit 91b1f055997f0f3ff72e0ba399b99995bff79591
Showing with 5 additions and 1 deletion.
  1. +5 −1 nikola/plugins/task/sections.py
@@ -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."""

0 comments on commit 91b1f05

Please sign in to comment.