@@ -0,0 +1,39 @@
1+---
2+title: Snapshots, and how to produce an RSS/Atom feed
3+author: Jasper Van der Jeugt
4+---
5+
6+Basic feed configuration
7+------------------------
8+
9+Hakyll has built-in support for two types of feeds: RSS and Atom. This tutorial
10+explains how you can add these to your blog or website. The first step is to
11+define a `FeedConfiguration` to set some basic options. For example, a cooking
12+blog may have the following declaration:
13+
14+```haskell
15+myFeedConfiguration :: FeedConfiguration
16+myFeedConfiguration = FeedConfiguration
17+ { feedTitle = "Healthy cooking: latest recipes"
18+ , feedDescription = "This feed provides fresh recipes for fresh food!"
19+ , feedAuthorName = "John Doe"
20+ , feedAuthorEmail = "test@example.com"
21+ , feedRoot = "http://healthycooking.example.com"
22+ }
23+```
24+
25+Now, we'll create the actual feed.
26+
27+```haskell
28+renderAtom :: FeedConfiguration
29+ -> Context String
30+ -> [Item String]
31+ -> Compiler (Item String)
32+```
33+
34+```haskell
35+renderRss :: FeedConfiguration
36+ -> Context String
37+ -> [Item String]
38+ -> Compiler (Item String)
39+```