Fixed summary html rendering issue

This commit is contained in:
Warwick 2024-06-26 19:27:55 +01:00
parent f50a3388d3
commit 3fd847bb36

View file

@ -10,9 +10,10 @@
{{- partial "taglist.html" . -}} {{- partial "taglist.html" . -}}
</a> </a>
{{ if gt (len .Summary) 500 }} {{ if gt (len .Summary) 500 }}
<p>{{slicestr .Summary 0 500}}...</p>
<p>{{slicestr .Summary 0 500 | safeHTML}}...</p>
{{ else }} {{ else }}
<p>{{.Summary}}</p> <p>{{.Summary | safeHTML}}</p>
{{ end }} {{ end }}
<span class="summary__date"> <span class="summary__date">
{{.Params.date.Format "2 January 2006"}} {{.Params.date.Format "2 January 2006"}}