summaryrefslogtreecommitdiffstats
path: root/src/themes/serene/templates/feed.xml
blob: 00aebe56c080db0f4b2982cc234b5c2516101016 (plain) (blame)
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
31
32
33
34
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ lang }}">
	<title>{% if section is defined and section.title %}{{ section.title }}{% else %}{{ config.title }}{% endif %}</title>
	{%- if section is defined and section.description %}
	<subtitle>{{ section.description }}</subtitle>
    {%- elif config.description %}
	<subtitle>{{ config.description }}</subtitle>
	{%- endif %}
	<link rel="self" type="application/atom+xml" href="{{ feed_url | safe }}"/>
  <link rel="alternate" type="text/html" href="
    {%- if section is defined -%}
      {{ section.permalink | escape_xml | safe }}
    {%- else -%}
      {{ config.base_url | escape_xml | safe }}
    {%- endif -%}
  "/>
  {% if last_updated is defined %}
	<updated>{{ last_updated | date(format="%Y-%m-%dT%H:%M:%S%:z") }}</updated>
	{% endif %}
	<id>{{ feed_url | safe }}</id>
	{%- for page in pages %}
	<entry xml:lang="{{ page.lang }}">
		<title>{{ page.title }}</title>
		<published>{{ page.date | date(format="%Y-%m-%dT%H:%M:%S%:z") }}</published>
		<updated>{{ (page.updated or page.date) | date(format="%Y-%m-%dT%H:%M:%S%:z") }}</updated>
		<link rel="alternate" type="text/html" href="{{ page.permalink | safe }}"/>
		<id>{{ page.permalink | safe }}</id>
    {% if page.summary %}
    <summary>{{ page.summary }}</summary>
    {% endif %}
		<content type="html" xml:base="{{ page.permalink | escape_xml | safe }}">{{ page.content }}</content>
	</entry>
	{%- endfor %}
</feed>