From 33528bcc8ddace06674f84ef5c6962069c2d3971 Mon Sep 17 00:00:00 2001 From: Spencer Williams Date: Sat, 12 Jul 2025 17:35:04 -0400 Subject: Add new props and vars for file mod/create time --- CHANGELOG.org | 9 ++++ lisp/seam-export.el | 117 ++++++++++++++++++++++++++++++++++------------------ 2 files changed, 87 insertions(+), 39 deletions(-) diff --git a/CHANGELOG.org b/CHANGELOG.org index fea7417..2ddf21c 100644 --- a/CHANGELOG.org +++ b/CHANGELOG.org @@ -44,6 +44,15 @@ =seam-export-template-values=, or per profile with =:template-values=. +- Added two new optional properties: =SEAM_CREATED= and + =SEAM_MODIFIED=. These can be accessed within templates using + ={{created}}=, ={{created-dt}}=, ={{modified}}=, and + ={{modified-dt}}=. If the new properties are not specified, + defaults will be pulled from filesystem metadata as before. (There + is no reliable way to know a file's true creation date, so in the + absence of =SEAM_CREATED=, creation date is assumed to be the same + as modification.) + - An option has been added to export internal links with a custom CSS class. The default is set by =seam-export-internal-link-class=, and can overridden per profile using =:internal-link-class=. diff --git a/lisp/seam-export.el b/lisp/seam-export.el index 49cc46a..e1b646c 100644 --- a/lisp/seam-export.el +++ b/lisp/seam-export.el @@ -176,6 +176,16 @@ interpolate it as-is. A list (