summaryrefslogtreecommitdiff
path: root/riki.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-08-21 16:08:24 +0300
committerLars Wirzenius <liw@liw.fi>2022-08-21 16:16:53 +0300
commit5368931be813819a2b4a3298ea372cdc68839ad0 (patch)
tree48887192df769e0288936982407954fa36bb4025 /riki.md
parent561141e67a77195f5502acbb418dd5307a9b289c (diff)
downloadriki-5368931be813819a2b4a3298ea372cdc68839ad0.tar.gz
feat: set output HTML file mtime from "meta date" directive
Sponsored-by: author
Diffstat (limited to 'riki.md')
-rw-r--r--riki.md23
1 files changed, 23 insertions, 0 deletions
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.
+~~~