Fixed summary html rendering issue
This commit is contained in:
parent
f50a3388d3
commit
3fd847bb36
1 changed files with 3 additions and 2 deletions
|
|
@ -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"}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue