Created
November 30, 2011 07:48
-
-
Save fannheyward/1408371 to your computer and use it in GitHub Desktop.
Picky RSS export out.xml
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> | |
<subtitle>{{ site_slogan }}</subtitle> | |
<link rel="alternate" type="text/html" href="http://{{ site_domain }}/" /> | |
<link rel="self" type="application/atom+xml" href="{{ feed_url }}" /> | |
<id>http://{{ site_domain }}/</id> | |
<updated>{{ site_updated }}</updated> | |
<rights>Copyright © 2009-2010, {{ site_author }}</rights> | |
{% for article in articles %} | |
<entry> | |
{% if article.title %} | |
<title>{{ article.title }}</title> | |
{% endif %} | |
{% if article.title_link %} | |
<link rel="alternate" type="text/html" href="{{ article.title_link }}" /> | |
{% else %} | |
<link rel="alternate" type="text/html" href="http://{{ site_domain }}/{{ article.title_url }}" /> | |
{% endif %} | |
<id>tag:{{ site_domain }},{{ article.created|date:"Y-m-d" }}:/{{ article.title_url }}</id> | |
<published>{{ article.created|date:"Y-m-d" }}</published> | |
<updated>{{ article.last_modified|date:"Y-m-d\TH:i:s\Z" }}</updated> | |
<slug>{{ article.title_url }}</slug>> | |
<author> | |
<name>{{ site_author }}</name> | |
<uri>http://{{ site_domain }}/</uri> | |
</author> | |
<content><![CDATA[ | |
{% ifequal article.format 'markdown' %} | |
{{ article.content }} | |
{% else %} | |
{% ifequal article.format 'txt' %} | |
{{ article.content|linebreaksbr }} | |
{% else %} | |
{{ article.content }} | |
{% endifequal %} | |
{% endifequal %} | |
]]></content> | |
</entry> | |
{% endfor %} | |
</feed> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment