mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
As not allowing duplicates in processed items is counter intuitive, let's allow it.
Also it may be allowed in the future (to process multiple values).
Also @avaris think it's bad to test something twice (see
https://github.com/getpelican/pelican/pull/2017), but for me confusion
lies in the "Why is list processing forbidden?", so, in a way, our
ideas converges in "let's not disallow processed items to be lists".
This reverts commit 9e574e9d8c.
This commit is contained in:
parent
13ac28b6d4
commit
e8a87e5d3c
1 changed files with 1 additions and 2 deletions
|
|
@ -278,8 +278,7 @@ class MarkdownReader(BaseReader):
|
||||||
self._md.reset()
|
self._md.reset()
|
||||||
formatted = self._md.convert(formatted_values)
|
formatted = self._md.convert(formatted_values)
|
||||||
output[name] = self.process_metadata(name, formatted)
|
output[name] = self.process_metadata(name, formatted)
|
||||||
elif (not DUPLICATES_DEFINITIONS_ALLOWED.get(name, True) or
|
elif not DUPLICATES_DEFINITIONS_ALLOWED.get(name, True):
|
||||||
name in METADATA_PROCESSORS):
|
|
||||||
if len(value) > 1:
|
if len(value) > 1:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
'Duplicate definition of `%s` '
|
'Duplicate definition of `%s` '
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue