Skip to content

Instantly share code, notes, and snippets.

@did
Created March 1, 2013 15:57
Show Gist options
  • Save did/5065568 to your computer and use it in GitHub Desktop.
Save did/5065568 to your computer and use it in GitHub Desktop.
RSS liquid template
---
title: Rss feed
published: true
response_type: rss
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
>
<channel>
<title>{{ site.seo_title }}</title>
<description>{{ site.meta_description }}</description>
<link>http://www.adagp.fr</link>
<language>fr</language>
<copyright></copyright>
<ttl>30</ttl>
<atom:link href="http://www.adagp.fr/newscasts/rss.xml" rel="self" type="application/rss+xml" />
{% for newscast in contents.newscasts order_by:date | limit:4 %}
<item>
<title>{{ newscast.title }}</title>
<description><![CDATA[{{ newscast.chapo }}]]></description>
<content:encoded><![CDATA[{{ newscast.content }}
]]></content:encoded>
<link>http://www.adagp.fr/newscasts/{{ newscast._permalink }}</link>
<guid isPermaLink="true">http://www.adagp.fr/newscasts/{{ newscast._permalink }}</guid>
<pubDate>{{ newscast.date | localized_date: '%a, %d %b %Y %H:%M:%S %z' }}</pubDate>
<source url="http://www.adagp.fr/">adagp.fr</source>
</item>
{% endfor %}
</channel>
</rss>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment