index : livejrnl-builder.git

ascending towards madness

<?xml version="1.0" encoding="utf-8"?> 
<rss version="2.0"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>{{ config.title }}</title>
		<link>{{ config.base_url }}</link>
		<description>{{ config.description }}</description>
		<pubDate>{% now 'Europe/Amsterdam', '%a, %d %b %Y %H:%M:%S %z' %}</pubDate>
		<language>{{ config.rss_language }}</language>
		<lastBuildDate>{% now 'Europe/Amsterdam', '%a, %d %b %Y %H:%M:%S %z' %}</lastBuildDate>
		<copyright>All entries are copyright {% now 'Europe/Amsterdam', '%Y' %} {{ config.author }}. Verbatim copying and redistribution of this entire feed is permitted provided this notice is preserved.</copyright>
		<atom:link href="{{ config.base_url }}/feed.xml" rel="self" type="application/rss+xml" />
{% set entry_list = entries %}
{% if config.cutoff > 0 %}
	{% set entry_list = entries[-config.cutoff:] %}
{% endif %}
{% for entry in entry_list|reverse %}
{% set id = (entries|length - loop.index) + 1 %}
		<item>
			<title>{{ entry.title|e }}</title>
			<link>{{ config.base_url }}#entry-{{ id }}</link>
			<guid>{{ config.base_url }}#entry-{{ id }}</guid>
{% set pubdate = " ".join([entry.date, entry.time]) %}
			<pubDate>{{ pubdate|datetime }}</pubDate>
{% for tag in entry.tags|sort %}
			<category>{{ tag|tagstrip|capitalize }}></category>
{% endfor %}
			<description>{{ entry.body|md2html|e }}</description>
		</item>
{% endfor %}
	</channel>
</rss>