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")
|
'CONTENT_PREFIX'), ENTITY_TYPE_PLURAL_MAP.get(post_type, post_type + "s"), created_at.strftime("%Y/%m/%d"), slug + ".md")
|
||||||
|
|
||||||
frontmatter = {
|
frontmatter = {
|
||||||
|
"post_meta": ['date'],
|
||||||
"url": url,
|
"url": url,
|
||||||
"type": ENTITY_TYPE_PLURAL_MAP.get(post_type, post_type + "s"),
|
"type": ENTITY_TYPE_PLURAL_MAP.get(post_type, post_type + "s"),
|
||||||
"date": created_at.isoformat(sep='T'),
|
"date": created_at.isoformat(sep='T'),
|
||||||
|
|
Loading…
Reference in New Issue