1. Ronny Pfannschmidt
  2. pelican-hacks

Commits

Guillaume b  committed 95d2c62

Pass the metadata conversion in Markdown as well,
so that dates and tags are correctly processed.

Signed-off-by: Guillaume B <guitreize@gmail.com>

  • Participants
  • Parent commits 596a467
  • Branches default

Comments (0)

Files changed (1)

File pelican/readers.py

View file
         
         metadatas = {}
         for name, value in md.Meta.items():
-            metadatas[name.lower()] = value[0] 
+            if name in _METADATAS_FIELDS:
+                meta = _METADATAS_FIELDS[name](value[0])
+            else:
+                meta = value[0]
+            metadatas[name.lower()] = meta
         return content, metadatas
 
 _EXTENSIONS = {'rst': RstReader, 'md': MarkdownReader}  # supported formats