-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbase.rss
30 lines (30 loc) · 1.3 KB
/
base.rss
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
27
28
29
30
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>{% block title %}MadMode{% endblock %}</title>
<link>{{ BASE_URL }}</link>
<description>{% block description %}Dan Connolly's tinkering notebook{% endblock %}</description>
<language>{% block lang %}en-us{% endblock %}</language>
<pubDate>{{ build_date|to_rfc2822 }}</pubDate>
<lastBuildDate>{{ build_date|to_rfc2822 }}</lastBuildDate>
{% block content %}
{%- for page in pages %}
<item>
<title>{{ page.title|escape }}</title>
<link>{{ BASE_URL }}/{{ page.path }}/</link>
<description>
{%- if page.type == "photo" -%}
<p><img src="/static/{{ page.path }}/main.jpg" alt="e;{{ page.title|escape }} by Dan Connolly"></p>
{%- if page.summary|trim -%}
<p>{{ page.summary|trim|escape }}</p>
{%- endif -%}
{%- endif -%}
{{- page.html|escape -}}
</description>
<pubDate>{{ page.date|to_rfc2822 }}</pubDate>
<guid>{{ BASE_URL }}/{{ page.path }}/</guid>
</item>
{%- endfor %}
{% endblock %}
</channel>
</rss>