Use safeHTML for titles and add non-breaking spaces to Lix 2.90's name

This commit is contained in:
Tom Hubrecht 2024-07-18 18:51:31 +02:00
parent 7e44247748
commit 9f5e21978a
Signed by: tom-hubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
+++
title = "Announcing Lix 2.90 \"Vanilla Ice Cream\""
title = "Announcing Lix 2.90 \"Vanilla Ice Cream\""
author = "Lix Team"
+++

View file

@ -21,7 +21,7 @@
{{ end }}
</div>
<div class="card-body">
<h5 class="card-title fw-semibold">{{ .Title }}</h5>
<h5 class="card-title fw-semibold">{{ .Title | safeHTML }}</h5>
<p class="card-text text-black-61">{{ .Summary }}</p>
</div>
</a>

View file

@ -3,7 +3,7 @@
<div class="container">
<div class="row justify-content-center pb-5">
<div class="col-12">
{{ with .Title }}
{{ with .Title | safeHTML }}
<h2 class="display-1 fw-bold text-center text-primary pb-3">{{ . }}</h2>
{{ end }}
{{ with .Params.description }}