mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Remove duplicate tags
This commit is contained in:
parent
8786732044
commit
92c6384fc9
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ def _process_if_nonempty(processor, name, settings):
|
|||
|
||||
|
||||
METADATA_PROCESSORS = {
|
||||
'tags': lambda x, y: [Tag(tag, y) for tag in strip_split(x)] or _DISCARD,
|
||||
'tags': lambda x, y: set(Tag(tag, y) for tag in strip_split(x) if tag) or _DISCARD,
|
||||
'date': lambda x, y: get_date(x.replace('_', ' ')),
|
||||
'modified': lambda x, y: get_date(x),
|
||||
'status': lambda x, y: x.strip() or _DISCARD,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue