Skip to content

Instantly share code, notes, and snippets.

@iso100
Created May 1, 2013 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iso100/5495111 to your computer and use it in GitHub Desktop.
Save iso100/5495111 to your computer and use it in GitHub Desktop.
A quick rss feed template for Statamic.
<channel>
<title><![CDATA[{{ folder }}]]></title>
<link>{{ _site_url }}/{{ folder }}</link>
<description>{{ _site_name }} {{ folder }}</description>
<dc:language>en-us</dc:language>
<dc:creator>{{ contact_email }}</dc:creator>
<dc:rights>Copyright {{ current_date format='Y' }}</dc:rights>
<dc:date>{{ current_date format="Y-m-d\TH:i:s\Z" }}</dc:date>
<admin:generatorAgent rdf:resource="http://statamic.com/" />
{{ entries:listing folder="blog" limit="10" }}
<item>
<title><![CDATA[{{ title }}]]></title>
<link>{{ _site_url }}{{ url }}</link>
<guid>{{ _site_url }}{{ url }}</guid>
<description><![CDATA[{{ intro|markdown }}]]></description>
<dc:date>{{ date format="Y-m-d\TH:i:s\Z" }}</dc:date>
</item>
{{ /entries:listing }}
</channel>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment