From 1b60be8c9d4e28645e713672eeb1b9dbdf4e1789 Mon Sep 17 00:00:00 2001 From: welpo Date: Sat, 24 Jun 2023 03:06:54 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20feat:=20style=20xml=20feed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/feed_style.xsl | 105 ++++++++++++++++++++++++++++++++++++++++++ templates/atom.xml | 9 ++-- 2 files changed, 111 insertions(+), 3 deletions(-) create mode 100644 static/feed_style.xsl diff --git a/static/feed_style.xsl b/static/feed_style.xsl new file mode 100644 index 0000000..d1d72a0 --- /dev/null +++ b/static/feed_style.xsl @@ -0,0 +1,105 @@ + + + + + + + + <xsl:value-of select="/atom:feed/atom:title"/> + + + + + + + +
+
+ + This is an Atom feed. Subscribe by copying the URL from the address bar into your newsreader. Visit About Feeds to learn more and get started. It’s free. + + + +
+ Recent Posts +
+
+ +
+
+ +
+
+ +
+ +
+ + + + + +
+
+
+
+
+
+ + +
+
diff --git a/templates/atom.xml b/templates/atom.xml index 6402128..276cc0a 100644 --- a/templates/atom.xml +++ b/templates/atom.xml @@ -1,5 +1,8 @@ - - + + + {{ config.title }} {%- if term %} - {{ term.name }} {%- elif section.title %} - {{ section.title }} @@ -13,7 +16,7 @@ {%- if section -%} {{ section.permalink | escape_xml | safe }} {%- else -%} - {{ config.base_url | escape_xml | safe }} + {{ get_url(path="/", lang=lang) | escape_xml | safe }} {%- endif -%} "/> <generator uri="https://www.getzola.org/">Zola</generator>