Last active

RSS Feed for Jekyll (feed/index.xml) -

  • Download Gist
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
layout: nil
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="">
<title type="text" xml:lang="en">{{ site.root_desc }}</title>
<link type="application/atom+xml" href="" rel="self"/>
<link type="text" href="" rel="alternate"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<name>Paul Stamatiou</name>
<rights>Copyright (c) 2005-2011, Paul Stamatiou; all rights reserved.</rights>
{% for post in site.posts limit:20 %}
<title>{{ post.title }}</title>
<link href="{{ post.url }}"/>
<updated>{{ | date_to_xmlschema }}</updated>
<id>{{ }}</id>
<content type="html">{{ post.content | xml_escape }}{% include rss_footer.html %}</content>
{% endfor %}

How do you use it ?
You just put the file into the main directory ?
(Talking about a jekyll running on github...)

I second siscla's comment. Why go to the trouble of posting this without explaining how to use it? And do you have a sample rss_footer.html file anywhere? Where do you place this file? How does jekyll know to put it in a feed directory? Help us here, Paul.

This file works simply like all other Jekyll files. Drop it in the main directory, name it something like atom.xml and it will be generated with your site. Then you can link to it if you'd like just how you would any other page.

lol people get angry when someone gives you free code

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.