From e9344f987608792b46d1ec0d1fd055e0baa26e2f Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Wed, 26 Jan 2022 11:56:10 +0100 Subject: Fix atom feed - add generator, author, icon, tags as categories - fix dates, summary and entry id urn --- templates/web/atom.xml | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'templates') 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 @@ - + Lesana Web {% if q %}Results for '{{ q }}' - {% endif %}{{ settings.name }} + + GL-Como + https://gl-como.it + + {{ siteurl }}{{ url_for('static', filename='linkopedia_rgb.svg') }} - {{ entries.0.data.updated }} - + {{ entries.0.data.updated.strftime("%Y-%m-%dT%H:%M:%SZ") }} + {{ siteurl }}/atom.xml{% if q %}?q={{ q|urlencode }}{% endif %} {% for entry in entries %} {{ entry.data.title }} + + GL-Como + https://gl-como.it + - urn:uuid:{{ entry.eid }} - {{ entry.data.updated }} - {{ entry.data.description }} + urn:lesana:{{ entry.eid }} + {{ entry.data.updated.strftime("%Y-%m-%dT%H:%M:%SZ") }} + {% if entry.data.description %}{{ entry.data.description }}{% else %}{{ entry.data.url }}{% endif %}

{{ entry.data.description }} - {{ entry.data.url }}

{% for tag in entry.data.tags %} - #{{ tag }} + #{{ tag }} {% endfor %}

+ {% for tag in entry.data.tags %} + + {% endfor %}
{% endfor %} -- cgit v1.2.3