mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge branch 'master' of github.com:ametaireau/pelican
This commit is contained in:
commit
36b89b3e4b
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ class ArticlesGenerator(Generator):
|
|||
if os.path.dirname(f) == self.path:
|
||||
category = self.settings['DEFAULT_CATEGORY']
|
||||
else:
|
||||
category = os.path.basename(os.path.dirname(f))
|
||||
category = os.path.basename(os.path.dirname(f)).decode('utf-8')
|
||||
|
||||
if category != '':
|
||||
metadata['category'] = unicode(category)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue