From 6673a063b8968d39b8396bc83242f779615a14c7 Mon Sep 17 00:00:00 2001 From: welpo Date: Mon, 23 Oct 2023 02:11:57 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20remove=20unnecessary=20de?= =?UTF-8?q?scription=20filters?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It caused issues if description contained double quotes. --- templates/atom.xml | 2 +- templates/macros/list_posts.html | 2 +- templates/partials/header.html | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/atom.xml b/templates/atom.xml index d6865bf..c3cd2ee 100644 --- a/templates/atom.xml +++ b/templates/atom.xml @@ -67,7 +67,7 @@ {% if page.summary -%} {{ page.summary | striptags | safe | trim_end_matches(pat=".") }}… {% elif page.description -%} - {{ page.description | striptags | safe }} + {{ page.description }} {% endif -%} {%- endfor %} diff --git a/templates/macros/list_posts.html b/templates/macros/list_posts.html index 65ce400..b61d0a3 100644 --- a/templates/macros/list_posts.html +++ b/templates/macros/list_posts.html @@ -34,7 +34,7 @@
{% if post.description %} -

{{ post.description | striptags | safe }}

+

{{ post.description }}

{% elif post.summary %}

{{ post.summary | striptags | safe | trim_end_matches(pat=".") }}…

{% endif %} diff --git a/templates/partials/header.html b/templates/partials/header.html index d2263ed..8c4b89d 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -62,11 +62,11 @@ {%- endif -%} {%- if page.description %} - - + + {%- elif section.description %} - - + + {%- elif page.summary %}