Removed the issue #75

See:
https://github.com/ametaireau/pelican/issues#issue/75
This commit is contained in:
skami 2011-02-15 18:48:23 +01:00
commit 4fddcf6c92

View file

@ -165,8 +165,7 @@ class ArticlesGenerator(Generator):
# if no category is set, use the name of the path as a category
if 'category' not in metadatas.keys():
category = os.path.dirname(f).replace(
os.path.expanduser(self.path)+'/', '')
category = os.path.basename(os.path.dirname(f))
if category == self.path:
category = self.settings['DEFAULT_CATEGORY']