Generate RSS Feed with Gullap

19.11.2013 20:00:00 by Norbert Eder

Version 1.3.0 of Gullap is under heavy development. One of the new features supports the customization of the target file name for posts as well as for pages. In the prior versions everything was generated into files having an HTML extension.

This change makes it easy to generate everything you might want to generate. This post shows an example of a Mustache template to generate a simple RSS Feed.

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="">
        <atom:link href="" rel="self" type="application/rss+xml" />
        <generator>Gullap -</generator>
        <description>DevTyr News Feed</description>
        <webMaster> (DevTyr Webmaster)</webMaster>

Save this to rss.template as it will be referenced by a page we need to create too:

title: DevTyr RSS
description: DevTyr RSS Feed
author: DevTyr / Norbert Eder
template: rss
filename: rss.xml

See the new attribte filename within the YAML Front Matter. Use it to define a new filename which will be recognized by the generation.

Please note: If you override the filename, you have to set the extension as well. Defining my-new-page will NOT result in a generated file named my-new-page.html.

After creation of both files generate the whole site or just the file and have a look your working RSS feed.

Gullap static website generator RSS feed

comments powered by Disqus