Blasta/template/browse.atom
Schimon Jehudah, Adv. 164b4d67d4 Graphic : Add an icon for syndication page;
HTML    : Add an XML template for The Atom Syndication Format;
Python  : Add support for The Atom Syndication Format;
README  : Add screenshots;
XSLT    : Add an XSL Transformations stylesheet.
2024-08-27 14:26:41 +03:00

49 lines
2.1 KiB
XML

<?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>
<icon>/graphic/blasta.svg</icon>
<link href="{{request.url}}"
rel="self"
type="text/html" />
<link href="{{request.url.__str__().replace('?mode=feed', '')}}"
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>/jid/{{entry['jid']}}</uri>
<uri>xmpp:{{entry['jid']}}</uri>
<xmpp>{{entry['jid']}}</xmpp>
</author>
<id>{{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>