Next: , Previous: , Up: Builders   [Contents][Index]


5.4.4 Atom

(use-modules (haunt builder atom))
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:

file-name:

The page file name.

subtitle

The feed subtitle.

filter

The procedure called to manipulate the posts list before rendering.

last-updated

The feed last updated date. Defaults to the current date.

max-entries

The maximum number of posts to render in the feed.

blog-prefix

The prefix for all post URLs, which is the combination of the blog’s prefix and post prefix. See Blog for more information.

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:

prefix

The directory in which to write the feeds.

filter

The procedure called to manipulate the posts list before rendering.

last-updated

The feed last updated date. Defaults to the current date.

max-entries

The maximum number of posts to render in each feed.

blog-prefix

The prefix for all post URLs, which is the combination of the blog’s prefix and post prefix. See Blog for more information.