add date to default post meta

This commit is contained in:
James Ravenscroft 2023-07-09 15:21:42 +01:00
parent 165fc400d4
commit 95662f180e
1 changed files with 1 additions and 0 deletions

View File

@ -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'),