mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Just in case someone forgot the DUPLICATES_DEFINITIONS_ALLOWED but add in METADATA_PROCESSORS.
This commit is contained in:
parent
24a1254f03
commit
9e574e9d8c
1 changed files with 2 additions and 1 deletions
|
|
@ -278,7 +278,8 @@ class MarkdownReader(BaseReader):
|
|||
self._md.reset()
|
||||
formatted = self._md.convert(formatted_values)
|
||||
output[name] = self.process_metadata(name, formatted)
|
||||
elif not DUPLICATES_DEFINITIONS_ALLOWED.get(name, True):
|
||||
elif (not DUPLICATES_DEFINITIONS_ALLOWED.get(name, True) or
|
||||
name in METADATA_PROCESSORS):
|
||||
if len(value) > 1:
|
||||
logger.warning(
|
||||
'Duplicate definition of `%s` '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue