@@ -77,10 +77,10 @@ def get_classification_friendly_name(self, classification, lang, only_last_compo
77
77
78
78
def get_overview_path (self , lang , dest_type = 'page' ):
79
79
"""A path handler for the list of all classifications."""
80
- if self .site .config ['CATEGORIES_INDEX_PATH' ][ lang ] :
81
- return [_f for _f in [self .site .config ['CATEGORIES_INDEX_PATH' ][ lang ] ] if _f ], 'never'
80
+ if self .site .config ['CATEGORIES_INDEX_PATH' ]( lang ) :
81
+ return [_f for _f in [self .site .config ['CATEGORIES_INDEX_PATH' ]( lang ) ] if _f ], 'never'
82
82
else :
83
- return [_f for _f in [self .site .config ['CATEGORY_PATH' ][ lang ] ] if _f ], 'always'
83
+ return [_f for _f in [self .site .config ['CATEGORY_PATH' ]( lang ) ] if _f ], 'always'
84
84
85
85
def slugify_tag_name (self , name , lang ):
86
86
"""Slugify a tag name."""
@@ -103,7 +103,7 @@ def slugify_category_name(self, path, lang):
103
103
104
104
def get_path (self , classification , lang , dest_type = 'page' ):
105
105
"""A path handler for the given classification."""
106
- return ([_f for _f in [self .site .config ['CATEGORY_PATH' ][ lang ] ] if _f ] + self .slugify_category_name (classification , lang ), 'auto' )
106
+ return ([_f for _f in [self .site .config ['CATEGORY_PATH' ]( lang ) ] if _f ] + self .slugify_category_name (classification , lang ), 'auto' )
107
107
108
108
def extract_hierarchy (self , classification ):
109
109
"""Given a classification, return a list of parts in the hierarchy."""
0 commit comments