From 5368931be813819a2b4a3298ea372cdc68839ad0 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 21 Aug 2022 16:08:24 +0300 Subject: feat: set output HTML file mtime from "meta date" directive Sponsored-by: author --- riki.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'riki.md') diff --git a/riki.md b/riki.md index 912dbac..dffd617 100644 --- a/riki.md +++ b/riki.md @@ -582,3 +582,26 @@ when I run riki build site output then file output/index.html has a very old modification time then file output/index.jpg has a very old modification time ~~~ + +### Output files have source `meta date` modification times + +_Requirement: Files in the output directory have the time stamp +specified in a `meta date` directive._ + +Note that due to limitations in the Subplot `lib/files` library, our +check for modification times is imprecise. + +~~~scenario +given an installed riki +given file site/index.mdwn from dated +given file site/index.mdwn has modification time 2022-02-02 01:02:03 +when I run riki build site output +then file output/index.html has a very old modification time +~~~ + + +~~~{#dated .file .markdown} +[[!meta date="1970-01-01 00:00:00"]] + +Hello. +~~~ -- cgit v1.2.1