fix: Affiche le texte des articles en retirant les saut de ligne

This commit is contained in:
Simon 2020-11-26 22:20:09 +01:00
parent d3721df4e9
commit 82e42e0788
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@
{{ end }}
<div class="text">
{{ $ellipsis := print " <a href='" .RelPermalink "'></a>" | safeHTML }}
{{ .Content | plainify | replace "\n" " " | htmlUnescape | truncate $truncateSize $ellipsis }}
{{ (replace (.Content | plainify) "\n" " ") | htmlUnescape | truncate $truncateSize $ellipsis }}
</div>
</div>
</div>