all repos — gemini-redirect @ master

templates/atom.xml (view raw)

 1<?xml version="1.0" encoding="UTF-8"?>
 2<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
 3    <channel>
 4      <title>{{ section.title }}</title>
 5        <link>{%- if section -%}
 6            {{ section.permalink | escape_xml | safe }}
 7          {%- else -%}
 8            {{ config.base_url | escape_xml | safe }}
 9          {%- endif -%}
10        </link>
11        <description>{{ config.description }}</description>
12        <generator>Zola</generator>
13        <language>{{ config.default_language }}</language>
14        <atom:link href="{{ feed_url | safe }}" rel="self" type="application/rss+xml"/>
15        <lastBuildDate>{{ last_updated | date(format="%a, %d %b %Y %H:%M:%S %z") }}</lastBuildDate>
16        {%- for page in pages %}
17        <item>
18            <title>{{ page.title }}</title>
19            <author>BiRabittoh</author>
20            <pubDate>{{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }}</pubDate>
21            <link>{{ page.permalink | escape_xml | safe }}</link>
22            <guid>{{ page.permalink | escape_xml | safe }}</guid>
23            <description>{% if page.summary %}{{ page.summary }}{% else %}{{ page.content }}{% endif %}</description>
24        </item>
25        {%- endfor %}
26    </channel>
27</rss>