forked from sch/Blasta
a53c3a3436
Python : Improve editing of tags; Python : Fix error upon no results on Atom; SQLite : Add triggers to count instances of entries; SQLite : Add triggers to delete entries SQLite : Add triggers to delete tags; XSLT : Remove control characters in favour of nbsp entity; XSLT : Improve links and design; XHTML : Add a new document about folksonomy; XHTML : Add a new template for URL; XHTML : Add indicators.
49 lines
2.1 KiB
XML
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&', '', 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>/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>
|