diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2022-01-27 23:31:48 +0100 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2022-01-27 23:31:48 +0100 |
commit | f224f02995850d0c1073689ff96bc1c5b8bca6f6 (patch) | |
tree | 77fc21b2795ee08819a99fe59e4f1d731bbece42 /templates/web | |
parent | 8ed2d2733cb321d1bad69b15963ba18234481a29 (diff) | |
parent | e9344f987608792b46d1ec0d1fd055e0baa26e2f (diff) |
Merge remote-tracking branch 'gl-como/master'
Diffstat (limited to 'templates/web')
-rw-r--r-- | templates/web/atom.xml | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/templates/web/atom.xml b/templates/web/atom.xml index 3948538..c03bfe3 100644 --- a/templates/web/atom.xml +++ b/templates/web/atom.xml @@ -1,27 +1,39 @@ <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> - + <generator uri="https://git.sr.ht/~fabrixxm/lesanaweb">Lesana Web</generator> <title>{% if q %}Results for '{{ q }}' - {% endif %}{{ settings.name }}</title> + <author> + <name>GL-Como</name> + <uri>https://gl-como.it</uri> + </author> + <icon>{{ siteurl }}{{ url_for('static', filename='linkopedia_rgb.svg') }}</icon> <link href="{{ siteurl }}" /> <link href="{{ siteurl }}/atom.xml{% if q %}?q={{ q|urlencode }}{% endif %}" rel="self" /> - <updated>{{ entries.0.data.updated }}</updated> - <id></id> + <updated>{{ entries.0.data.updated.strftime("%Y-%m-%dT%H:%M:%SZ") }}</updated> + <id>{{ siteurl }}/atom.xml{% if q %}?q={{ q|urlencode }}{% endif %}</id> {% for entry in entries %} <entry> <title>{{ entry.data.title }}</title> + <author> + <name>GL-Como</name> + <uri>https://gl-como.it</uri> + </author> <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> + <id>urn:lesana:{{ entry.eid }}</id> + <updated>{{ entry.data.updated.strftime("%Y-%m-%dT%H:%M:%SZ") }}</updated> + <summary>{% if entry.data.description %}{{ entry.data.description }}{% else %}{{ entry.data.url }}{% endif %}</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> + <a class="tag" href="{{ siteurl }}{{ url_for('search') }}?q=tags:{{tag|urlencode}}">#{{ tag }}</a> {% endfor %}</p> </div> </content> + {% for tag in entry.data.tags %} + <category term="{{tag}}"/> + {% endfor %} </entry> {% endfor %} |