forked from github/pelican
Removed the issue #75
See: https://github.com/ametaireau/pelican/issues#issue/75
This commit is contained in:
parent
c019443026
commit
4fddcf6c92
1 changed files with 1 additions and 2 deletions
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue