From 95662f180e06cbbd7b22da3effe05fd7fa95b51e Mon Sep 17 00:00:00 2001 From: James Ravenscroft Date: Sun, 9 Jul 2023 15:21:42 +0100 Subject: [PATCH] add date to default post meta --- src/microcosm/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/microcosm/__init__.py b/src/microcosm/__init__.py index 5d53fcb..6f3210a 100644 --- a/src/microcosm/__init__.py +++ b/src/microcosm/__init__.py @@ -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'),