Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 context 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
dateField
Synopsis
- data FeedConfiguration = FeedConfiguration {}
- renderRss :: FeedConfiguration -> Context String -> [Item String] -> Compiler (Item String)
- renderAtom :: FeedConfiguration -> Context String -> [Item String] -> Compiler (Item String)
- renderRssWithTemplates :: Template -> Template -> FeedConfiguration -> Context String -> [Item String] -> Compiler (Item String)
- renderAtomWithTemplates :: Template -> Template -> FeedConfiguration -> Context String -> [Item String] -> Compiler (Item String)
Documentation
data FeedConfiguration Source #
This is a data structure to keep the configuration of a feed.
FeedConfiguration | |
|
Instances
Eq FeedConfiguration Source # | |
Defined in Hakyll.Web.Feed (==) :: FeedConfiguration -> FeedConfiguration -> Bool # (/=) :: FeedConfiguration -> FeedConfiguration -> Bool # | |
Show FeedConfiguration Source # | |
Defined in Hakyll.Web.Feed showsPrec :: Int -> FeedConfiguration -> ShowS # show :: FeedConfiguration -> String # showList :: [FeedConfiguration] -> ShowS # |
:: FeedConfiguration | Feed configuration |
-> Context String | Item context |
-> [Item String] | Feed items |
-> Compiler (Item String) | Resulting feed |
Render an RSS feed with a number of items.
:: FeedConfiguration | Feed configuration |
-> Context String | Item context |
-> [Item String] | Feed items |
-> Compiler (Item String) | Resulting feed |
Render an Atom feed with a number of items.