From 4fb5fae2ba80c743d36b4cdbe221b9cb56b44875 Mon Sep 17 00:00:00 2001 From: andwati Date: Fri, 17 Jul 2026 14:37:04 +0300 Subject: [PATCH] fix xml --- sass/_lists.scss | 7 ++ static/_redirects | 2 + static/rss.xsl | 186 ++++++++++++++++++++------------- templates/rss.xml | 5 +- templates/taxonomy_single.html | 11 +- zola.toml | 8 ++ 6 files changed, 139 insertions(+), 80 deletions(-) diff --git a/sass/_lists.scss b/sass/_lists.scss index 88b8599..3e984a8 100644 --- a/sass/_lists.scss +++ b/sass/_lists.scss @@ -12,6 +12,13 @@ color: var(--text-muted); } +.tag-description { + max-width: 65ch; + margin: 0.75rem 0 0; + color: var(--text-muted); + font-size: 1.05rem; +} + .archive-list { max-width: 65ch; margin: 0 auto; diff --git a/static/_redirects b/static/_redirects index a08d3de..eea8684 100644 --- a/static/_redirects +++ b/static/_redirects @@ -1 +1,3 @@ +https://www.andwati.com/* https://andwati.com/:splat 301 /security.txt /.well-known/security.txt 301 +/index.xml /rss.xml 301 diff --git a/static/rss.xsl b/static/rss.xsl index 7e55720..fb7efb6 100644 --- a/static/rss.xsl +++ b/static/rss.xsl @@ -1,134 +1,172 @@ - + - <xsl:value-of select="/rss/channel/title"/> - RSS Feed + <xsl:value-of select="/rss/channel/title"/> — RSS Feed -
-

-

-
+
+
+

+

+
-
- This is an RSS feed. Subscribe by copying the URL from your address bar into your news reader app. -
+
+ RSS Feed + This is a feed, not a normal web page. Copy the URL from your address bar into a feed reader to subscribe. +
-
- -
-

- - - -

-
- Published: +
+ +
+
Published
+

+ + + +

+
+ … +
+ Read article →
-
- ... -
- Read article → -
- + +
diff --git a/templates/rss.xml b/templates/rss.xml index 4ead774..2998410 100644 --- a/templates/rss.xml +++ b/templates/rss.xml @@ -1,6 +1,6 @@ - + {{ config.title }} {{ config.base_url }} @@ -16,7 +16,8 @@ {{ page.extra.author | default(value=config.extra.author) | default(value="Unknown") }} {{ page.permalink | safe }} {{ page.permalink | safe }} - {{ page.content }} + {{ page.description | default(value=config.description) }} + {{ page.content }} {% endfor %} diff --git a/templates/taxonomy_single.html b/templates/taxonomy_single.html index 27fe1d4..978318b 100644 --- a/templates/taxonomy_single.html +++ b/templates/taxonomy_single.html @@ -1,11 +1,11 @@ {% extends "base.html" %} {% block title %}Tag: {{ term.name }} | {{ config.title }}{% endblock -title %} {% block description %}Posts tagged "{{ term.name }}" on {{ config.title }}{% endblock +title %} {% block description %}{{ config.extra.tag_descriptions[term.slug] | default(value='Posts tagged "' ~ term.name ~ '" on ' ~ config.title) }}{% endblock description %} {% block canonical %}{{ term.permalink }}{% endblock canonical %} {% block og_title -%}Tag: {{ term.name }} | {{ config.title }}{% endblock og_title %} {% block og_description %}Posts -tagged "{{ term.name }}" on {{ config.title }}{% endblock og_description %} {% block og_url %}{{ +%}Tag: {{ term.name }} | {{ config.title }}{% endblock og_title %} {% block og_description %}{{ +config.extra.tag_descriptions[term.slug] | default(value='Posts tagged "' ~ term.name ~ '" on ' ~ config.title) }}{% endblock og_description %} {% block og_url %}{{ term.permalink }}{% endblock og_url %} {% block head %} {% set tag_ld_name = 'Posts tagged "' ~ term.name ~ '" | ' ~ config.title %} -{% set tag_ld_description = 'Posts tagged "' ~ term.name ~ '" on ' ~ config.title %} +{% set tag_ld_description = config.extra.tag_descriptions[term.slug] | default(value='Posts tagged "' ~ term.name ~ '" on ' ~ config.title) %}