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


5.6.3 Atom

(use-modules (haunt builder atom))
Scheme Procedure: atom-feed [#:file-name #:subtitle #:filter #:max-entries #: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. The default is feed.xml.

subtitle

The feed subtitle. The default is “Recent Posts”.

filter

The procedure called to manipulate the posts list before rendering. The default is to keep all posts and sort them in reverse chronological order.

max-entries

The maximum number of posts to render in the feed. The default is 20.

Scheme Procedure: atom-feeds-by-tag [#:prefix #:filter #:max-entries #: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. The default is feeds/tags.

filter

The procedure called to manipulate the posts list before rendering. The default is to keep all posts and sort them in reverse chronological order.

max-entries

The maximum number of posts to render in each feed. The default is 20.