Skip to content
Robert M Flight edited this page Sep 26, 2013 · 2 revisions

RSS stands for really simple syndication, a way of letting others get updates from your site without having to actually visit the site itself. Epitomized by the now defunct Google Reader, it is still used by many people (especially scientists) to keep up with changes to a site.

Samatha includes the ability to easily create both a general RSS feed for your site, as well as tag specific feeds that allow followers to receive updates on only a specific topic. Below we outline the steps necessary to generate RSS feeds for your site.

config.R

The main place to start is by adding an RSS section to your config.R file in template -> config

At a minimum, you will need to set the rss.title, rss.description, and domain:

rss.title <- "Title of your blog"
rss.description <- "description of your blog"
domain <- "url of your blog"

Category Feeds

If you want to have a feed generated for a specific tag (see how to add tags to your posts), you will need to add:

rss.category.feeds <- c("tag1", "tag2")

Generation

When you run samatha, make sure to set the rss option to TRUE to have RSS feeds generated.

Locations

Your main feed will be at urlOfSite/rss.xml. Tag specific feeds will be at urlOfSite/tags/tag1.xml, and urlOfSite/tags/tag2.xml following the example above.

Contents

Introduction

Installation and setup

HTML generation

Building a new static site

Posts and Pages

The Samatha engine

RSS Feeds

Testing your site

Samatha Online

Clone this wiki locally