From 768de298cb1babd3a9e4fcbce74d78d369210caa Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Thu, 18 Mar 2021 16:00:23 +0100 Subject: Add atom feed --- templates/web/atom.xml | 28 ++++++++++++++++++++++++++++ templates/web/base.html | 5 ++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 templates/web/atom.xml (limited to 'templates/web') diff --git a/templates/web/atom.xml b/templates/web/atom.xml new file mode 100644 index 0000000..3948538 --- /dev/null +++ b/templates/web/atom.xml @@ -0,0 +1,28 @@ + + + + {% if q %}Results for '{{ q }}' - {% endif %}{{ settings.name }} + + + {{ entries.0.data.updated }} + + + {% for entry in entries %} + + {{ entry.data.title }} + + urn:uuid:{{ entry.eid }} + {{ entry.data.updated }} + {{ entry.data.description }} + +
+

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

+

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

+
+
+
+ {% endfor %} + +
diff --git a/templates/web/base.html b/templates/web/base.html index 018d66a..a2a8097 100644 --- a/templates/web/base.html +++ b/templates/web/base.html @@ -5,7 +5,10 @@ - + + {% if q %} + + {% endif %} {% block title %}Linkopedia{% endblock %}