mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Lowercase meta field's name before looking the processor.
This commit is contained in:
parent
07393cf3b8
commit
a322d6c4e8
1 changed files with 2 additions and 1 deletions
|
|
@ -50,11 +50,12 @@ class MarkdownReader(object):
|
|||
|
||||
metadatas = {}
|
||||
for name, value in md.Meta.items():
|
||||
name = name.lower()
|
||||
if name in _METADATAS_FIELDS:
|
||||
meta = _METADATAS_FIELDS[name](value[0])
|
||||
else:
|
||||
meta = value[0]
|
||||
metadatas[name.lower()] = meta
|
||||
metadatas[name] = meta
|
||||
return content, metadatas
|
||||
|
||||
_EXTENSIONS = {'rst': RstReader, 'md': MarkdownReader} # supported formats
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue