Created
February 27, 2015 01:58
-
-
Save agarrharr/684eeffa6e9eb8e61086 to your computer and use it in GitHub Desktop.
Jekyll Rss Feed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
--- | |
<?xml version="1.0" encoding="UTF-8"?> | |
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | |
<channel> | |
<title>{{ site.title }}</title> | |
<description>{{ site.description }}</description> | |
<link>{{ site.url }}</link> | |
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" /> | |
{% for post in site.posts limit:10 %} | |
<item> | |
<title>{{ post.title }}</title> | |
<description>{{ post.content | xml_escape }}</description> | |
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate> | |
<link>{{ site.url }}/{{ post.url }}</link> | |
<guid isPermaLink="true">{{ site.url }}/{{ post.url }}</guid> | |
</item> | |
{% endfor %} | |
</channel> | |
</rss> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment