Create a RSS feed

You can create a page which will be used as a RSS feed for your blog.


  • an "articles" page was created as well as a templatized page for an article.
  • an "article" model was also created.

In order to create that kind of page, follow these steps:

1. Generate a new page

Use Wagon to generate your page:

bundle exec wagon generate page rss

2. Modify the page

Open your app/views/pages/rss.liquid template and modify it like this:

title: RSS feed
published: true
listed: false
response_type: application/rss+xml
<rss version="2.0"
    <title>{{ site.seo_title }}</title>
    <description>{{ site.meta_description }}</description>
    <atom:link href="" rel="self" type="application/rss+xml" />
    {% for article in contents.articles %}
        <title>{{ article.title }}</title>
        <description>{{ article.excerpt }}</description>
        <content:encoded>{{ article.body }}></content:encoded>
        <link>{{ article._permalink }}</link>
        <guid isPermaLink="true">{{ article._permalink }}</guid>
        <pubDate>{{ article.posted_at | localized_date: '%a, %d %b %Y %H:%M:%S %z' }}</pubDate>
        <source url=""></source>
    {% endfor %}

3. RSS feed auto-detection

If you want the browsers and news readers to auto-detect your RSS feed, add the following statement within the "head" tag of your template (or layout if you use one).

{{ '/articles/rss.xml' | auto_discovery_link_tag }}