Hakyll.Web.Feed
Description
A Module that allows easy rendering of RSS feeds.
The main rendering functions (renderRss
, renderAtom
) all assume that
you pass the list of items so that the most recent entry in the feed is the
first item in the list.
Also note that the pages should have (at least) the following fields to produce a correct feed:
-
$title
: Title of the item -
$description
: Description to appear in the feed -
$url
: URL to the item - this is usually set automatically.
In addition, the posts should be named according to the rules for
Hakyll.Page.Metadata.renderDateField
.
- data FeedConfiguration = FeedConfiguration {}
- renderRss :: FeedConfiguration -> Compiler [Page String] String
- renderAtom :: FeedConfiguration -> Compiler [Page String] String
Documentation
data FeedConfiguration Source
This is a data structure to keep the configuration of a feed.
Constructors
FeedConfiguration | |
Fields
|
Instances
Arguments
:: FeedConfiguration | Feed configuration |
-> Compiler [Page String] String | Feed compiler |
Render an RSS feed with a number of items.
Arguments
:: FeedConfiguration | Feed configuration |
-> Compiler [Page String] String | Feed compiler |
Render an Atom feed with a number of items.