From 9f5e21978aabd5fc1d854b2c050a775cb7c09379 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Thu, 18 Jul 2024 18:51:31 +0200 Subject: [PATCH] Use safeHTML for titles and add non-breaking spaces to Lix 2.90's name --- content/blog/2024-07-10-lix-2.90-release.md | 2 +- themes/lix/layouts/_default/list.html | 2 +- themes/lix/layouts/_default/single.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/blog/2024-07-10-lix-2.90-release.md b/content/blog/2024-07-10-lix-2.90-release.md index f65addc6..5a50eee0 100644 --- a/content/blog/2024-07-10-lix-2.90-release.md +++ b/content/blog/2024-07-10-lix-2.90-release.md @@ -1,5 +1,5 @@ +++ -title = "Announcing Lix 2.90 \"Vanilla Ice Cream\"" +title = "Announcing Lix 2.90 \"Vanilla Ice Cream\"" author = "Lix Team" +++ diff --git a/themes/lix/layouts/_default/list.html b/themes/lix/layouts/_default/list.html index 051a8db2..5db00740 100644 --- a/themes/lix/layouts/_default/list.html +++ b/themes/lix/layouts/_default/list.html @@ -21,7 +21,7 @@ {{ end }}
-
{{ .Title }}
+
{{ .Title | safeHTML }}

{{ .Summary }}

diff --git a/themes/lix/layouts/_default/single.html b/themes/lix/layouts/_default/single.html index c027e87b..2099b8ce 100644 --- a/themes/lix/layouts/_default/single.html +++ b/themes/lix/layouts/_default/single.html @@ -3,7 +3,7 @@
- {{ with .Title }} + {{ with .Title | safeHTML }}

{{ . }}

{{ end }} {{ with .Params.description }}