Merge branch 'master' of github.com:ametaireau/pelican

This commit is contained in:
Alexis Metaireau 2011-08-17 10:39:06 +02:00
commit 36b89b3e4b

View file

@ -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)