mirror of
https://github.com/getpelican/pelican.git
synced 2026-06-16 07:06:56 +02:00
Update readers.py
This commit is contained in:
parent
9aad7a0a78
commit
0bb2d5cad1
1 changed files with 1 additions and 1 deletions
|
|
@ -811,7 +811,7 @@ def parse_path_metadata(source_path, settings=None, process=None):
|
|||
checks = []
|
||||
for key, data in [("FILENAME_METADATA", base), ("PATH_METADATA", source_path)]:
|
||||
checks.append((settings.get(key, None), data))
|
||||
if settings.get("USE_FOLDER_AS_CATEGORY", None) and settings.get("CATEGORY_SAVE_AS"):
|
||||
if settings.get("USE_FOLDER_AS_CATEGORY") and settings.get("CATEGORY_SAVE_AS"):
|
||||
checks.append(("(?P<category>.*)", subdir))
|
||||
for regexp, data in checks:
|
||||
if regexp and data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue