Next: Readers, Previous: Sites, Up: Programming Interface [Contents][Index]
(use-modules (haunt post))
Posts represent the articles that are kept in a site’s post directory and written in a markup format that Haunt can understand. see Readers) for how files on disk can be transformed into posts.
Create a new post object that represents the contents of the file file-name. The body of the post, sxml, is represented as an SXML tree (see SXML in GNU Guile Reference Manual) and the metadata is an association list (see Association Lists in GNU Guile Reference Manual) of arbitrary key/value pairs.
Return #t
if object is a post.
Return the file name for post.
Return the metadata association list for post.
Return the SXML tree for post.
Return the metadata value corresponding to key within post.
Transform the title of post into a URL slug suitable for the file name of a web page.
The default date of a post when no other date is specified in the metadata association list.
Return the date for post, or %default-date
if no date is
specified.
Sort posts, a list of posts, in reverse chronological order.
Create an association list of tags mapped to the posts in the list posts that used them.
Next: Readers, Previous: Sites, Up: Programming Interface [Contents][Index]