summaryrefslogtreecommitdiff
path: root/doc/haunt.texi
diff options
context:
space:
mode:
authorRichard Sent <richard@freakingpenguin.com>2024-01-13 23:38:09 -0500
committerDavid Thompson <dthompson2@worcester.edu>2024-01-16 21:07:15 -0500
commitb90f239791e87e4ef8a816eb402f654ed9ba9d52 (patch)
treece58e531d4b0b1617b80f2111553db509f7e800a /doc/haunt.texi
parent0abc3b9c0d931715a31ae19006a0fbbe97066dba (diff)
atom/rss: Allow passing last updated date for reproducibility.
Diffstat (limited to 'doc/haunt.texi')
-rw-r--r--doc/haunt.texi12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/haunt.texi b/doc/haunt.texi
index d19cf71..6be2fb5 100644
--- a/doc/haunt.texi
+++ b/doc/haunt.texi
@@ -997,6 +997,7 @@ The default theme is intended only for testing purposes.
@deffn {Procedure} atom-feed [#:file-name "feed.xml"] [#:subtitle "Recent Posts"] @
[#:filter posts/reverse-chronological] @
+ [#:last-updated (current-date)] @
[#:max-entries 20] [#:blog-prefix ""]
Return a builder procedure that renders a site's posts as an Atom
feed. All arguments are optional:
@@ -1012,6 +1013,9 @@ The feed subtitle.
@item filter
The procedure called to manipulate the posts list before rendering.
+@item last-updated
+The feed last updated date. Defaults to the current date.
+
@item max-entries
The maximum number of posts to render in the feed.
@@ -1025,6 +1029,7 @@ prefix and post prefix. @xref{Blog} for more information.
@deffn {Procedure} atom-feeds-by-tag [#:prefix "feeds/tags"] @
[#:filter posts/reverse-chronological] @
+ [#:last-updated (current-date)] @
[#:max-entries 20] [#:blog-prefix ""]
Return a builder procedure that renders an atom feed for every tag
used in a post. All arguments are optional:
@@ -1037,6 +1042,9 @@ The directory in which to write the feeds.
@item filter
The procedure called to manipulate the posts list before rendering.
+@item last-updated
+The feed last updated date. Defaults to the current date.
+
@item max-entries
The maximum number of posts to render in each feed.
@@ -1057,6 +1065,7 @@ prefix and post prefix. @xref{Blog} for more information.
@deffn {Procedure} rss-feed [#:file-name "rss-feed.xml"] [#:subtitle "Recent Posts"] @
[#:filter posts/reverse-chronological] @
+ [#:publication-date (current-date)] @
[#:max-entries 20] [#:blog-prefix ""]
Return a builder procedure that renders a list of posts as an RSS
feed. All arguments are optional:
@@ -1072,6 +1081,9 @@ The feed subtitle.
@item filter
The procedure called to manipulate the posts list before rendering.
+@item publication-date
+The feed publication date. Defaults to the current date.
+
@item max-entries
The maximum number of posts to render in the feed.