add date to default post meta
This commit is contained in:
parent
165fc400d4
commit
95662f180e
|
@ -188,6 +188,7 @@ def init_frontmatter(created_at: datetime, post_type: str, name: Optional[str]=N
|
|||
'CONTENT_PREFIX'), ENTITY_TYPE_PLURAL_MAP.get(post_type, post_type + "s"), created_at.strftime("%Y/%m/%d"), slug + ".md")
|
||||
|
||||
frontmatter = {
|
||||
"post_meta": ['date'],
|
||||
"url": url,
|
||||
"type": ENTITY_TYPE_PLURAL_MAP.get(post_type, post_type + "s"),
|
||||
"date": created_at.isoformat(sep='T'),
|
||||
|
|
Loading…
Reference in New Issue