Blasta/blasta/assets/template/browse.atom

51 lines
2.2 KiB
Text
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/stylesheet/stylesheet.xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<generator uri="https://git.xmpp-it.net/sch/Blasta" version="0.1">Blasta</generator>
<id>{{request.url}}</id>
<icon>/graphic/blasta.svg</icon>
<link href="{{request.url}}"
rel="self"
type="application/atom+xml" />
<link href="{{request.url.__str__().replace('mode=feed&', '', 1).replace('?mode=feed', '', 1)}}"
rel="alternate"
type="text/html" />
<link href="xmpp:{{pubsub_jid}}?pubsub;action=subscribe;node={{node_id}}"
rel="alternate"
type="x-scheme-handler/xmpp" />
<logo>/graphic/blasta.svg</logo>
<subtitle type="text">{{description}}</subtitle>
<title type="text">Blasta / {{path}}</title>
<updated>{{entries[0]['updated']}}</updated>
{% if entries %}
{% for entry in entries %}
<entry>
<author>
<name>{{entry['name']}}</name>
<uri>xmpp:{{entry['jid']}}</uri>
<!-- uri>/jid/{{entry['jid']}}</uri -->
<!-- xmpp>{{entry['jid']}}</xmpp -->
</author>
<id>md5:{{entry['url_hash']}}</id>
<link href="{{entry['link']}}"
rel="alternate" />
<link href="xmpp:{{pubsub_jid}}?pubsub;action=subscribe;node=hash:{{entry['url_hash']}}"
rel="alternate"
type="x-scheme-handler/xmpp" />
<link href="/url/{{entry['url_hash']}}"
rel="related"
type="text/html" />
<published>{{entry['published']}}</published>
<summary type="text">{{entry['summary']}}</summary>
<title>{{entry['title']}}</title>
<updated>{{entry['updated']}}</updated>
{% if entry['tags'] | length > 0 %}
{% for tag in entry['tags'] %}
<category term="{{tag}}" />
{% endfor %}
{% endif %}
</entry>
{% endfor %}
{% endif %}
</feed>