Skip to content
Permalink
Browse files
If there is no subdirectory, use POSTS entry instead of '.'
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 2, 2018
1 parent 90bbc98 commit e05e7e9e16b8406f88b5853a42c14689d4e38197
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/post.py
@@ -249,7 +249,7 @@ def __init__(

# Handle CATEGORY_DESTPATH_AS_DEFAULT
if 'category' not in meta and self.config['CATEGORY_DESTPATH_AS_DEFAULT']:
if self.config['CATEGORY_DESTPATH_TRIM_PREFIX']:
if self.config['CATEGORY_DESTPATH_TRIM_PREFIX'] and self.folder_relative != '.':
category = self.folder_relative
else:
category = self.folders[lang]

0 comments on commit e05e7e9

Please sign in to comment.