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:
|
if os.path.dirname(f) == self.path:
|
||||||
category = self.settings['DEFAULT_CATEGORY']
|
category = self.settings['DEFAULT_CATEGORY']
|
||||||
else:
|
else:
|
||||||
category = os.path.basename(os.path.dirname(f))
|
category = os.path.basename(os.path.dirname(f)).decode('utf-8')
|
||||||
|
|
||||||
if category != '':
|
if category != '':
|
||||||
metadata['category'] = unicode(category)
|
metadata['category'] = unicode(category)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue