mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Removed another utf-8 related bug
This commit is contained in:
parent
4a6bf81b2e
commit
26eecf082a
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