Last active
October 1, 2015 13:24
-
-
Save ndarville/696198fb885c6e535aa4 to your computer and use it in GitHub Desktop.
RSS feed template for sarah
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"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title>{{ site.name }}</title> | |
<link href="{{ site_url }}/feed.atom" rel="self"/> | |
<link href="{{ site_url }}/"/> | |
<updated>{{ site.time | date_to_xmlschema }}</updated> | |
<id>{{ base }}/</id> | |
// for link in link_collection | |
<entry> | |
<title>{{ post.title | xml_escape }}</title> | |
<link href="{{ post.abs_url }}"/> | |
<updated>{{ post.date | date_to_xmlschema }}</updated> # optional | |
<id>{{ site.url }}{{ post.id }}</id> # optional | |
<content type="html">{{ post.content | xml_escape }}</content> | |
</entry> | |
// endfor | |
</feed> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment