aboutsummaryrefslogtreecommitdiff
path: root/templates/web/atom.xml
blob: 3948538b5e65ad2ee1dbe4c2acb163d2815e4a49 (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title>{% if q %}Results for '{{ q }}' - {% endif %}{{ settings.name }}</title>
  <link href="{{ siteurl }}" />
  <link href="{{ siteurl }}/atom.xml{% if q %}?q={{ q|urlencode }}{% endif %}" rel="self" />
  <updated>{{ entries.0.data.updated }}</updated>
  <id></id>

  {% for entry in entries %}
  <entry>
    <title>{{ entry.data.title }}</title>
    <link href="{{ siteurl }}{{ url_for('entry', eid=entry.eid) }}"/>
    <id>urn:uuid:{{ entry.eid }}</id>
    <updated>{{ entry.data.updated }}</updated>
    <summary>{{ entry.data.description }}</summary>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>{{ entry.data.description }} - {{ entry.data.url }}</p>
        <p>{% for tag in entry.data.tags %}
          #<a class="tag" href="{{ siteurl }}{{ url_for('search') }}?q=tags:{{tag|urlencode}}">{{ tag }}</a>
        {% endfor %}</p>
      </div>
    </content>
  </entry>
  {% endfor %}

</feed>