Skip to content

Instantly share code, notes, and snippets.

@joonty
Created April 7, 2014 10:29
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 joonty/10017936 to your computer and use it in GitHub Desktop.
Save joonty/10017936 to your computer and use it in GitHub Desktop.
My Jekyll feed XML for joncairns.com
---
layout: none
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">
<channel>
<title>{{ site.name | xml_escape }}</title>
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
<link>{{ site.url }}</link>
<language>en</language>
<lastBuildDate>{{ site.time | date: '%a, %d %b %Y %H:%M:%S %z' }}</lastBuildDate>
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
{% for post in site.posts limit:10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description>
<![CDATA[
{{ post.excerpt }}
]]>
</description>
<content:encoded>
<![CDATA[
{{ post.content }}
]]>
</content:encoded>
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<link>{{ site.url }}{{ post.url }}</link>
<comments>{{ site.url }}{{ post.url }}#comments</comments>
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
<dc:creator>Jon Cairns</dc:creator>
{% for cat in post.categories %}
<category>
<![CDATA[ {{cat}} ]]>
</category>
{% endfor %}
{% for tag in post.tags %}
<category>
<![CDATA[ {{tag}} ]]>
</category>
{% endfor %}
</item>
{% endfor %}
</channel>
</rss>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment