Skip to content

Commit

Permalink
Fixing wrong path.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Dec 2, 2016
1 parent da3f0be commit 8ecfcee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/task/sections.py
Expand Up @@ -81,7 +81,7 @@ 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 [self.site.config['TRANSLATIONS'][lang], section] if _f], 'always'
return [_f for _f in [section] if _f], '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 8ecfcee

Please sign in to comment.