Merge pull request 'Use safeHTML for titles and add non-breaking spaces to Lix 2.90's name' (#32) from tom-hubrecht/lix-website:blog-titles into main

Reviewed-on: #32
Reviewed-by: jade <jade@noreply.git.lix.systems>
This commit is contained in:
jade 2024-07-18 17:26:41 +00:00
commit 7069486d7f
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&nbsp;Ice&nbsp;Cream\""
author = "Lix Team" author = "Lix Team"
+++ +++

View file

@ -21,7 +21,7 @@
{{ end }} {{ end }}
</div> </div>
<div class="card-body"> <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> <p class="card-text text-black-61">{{ .Summary }}</p>
</div> </div>
</a> </a>

View file

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