change default date to file creation time

This commit is contained in:
Daniel Fichtinger 2025-07-02 15:53:29 -04:00
parent f932f24e38
commit 577976c741

View file

@ -39,7 +39,7 @@ def parse_metadata(path: Path) -> tuple[Metadata, str]:
raw_meta = post.metadata or {}
defaults = {
"title": zona.util.filename_to_title(path),
"date": date.fromtimestamp(path.stat().st_mtime),
"date": date.fromtimestamp(path.stat().st_ctime),
}
meta = {**defaults, **raw_meta}
try: