diff --git a/layouts/partials/post-previews.html b/layouts/partials/post-previews.html index eedc93c0..72d48d9d 100644 --- a/layouts/partials/post-previews.html +++ b/layouts/partials/post-previews.html @@ -50,8 +50,8 @@ {{- $src := index $picPage.Params.Media 0 -}}
- {{- $shortSummary := index (split .Summary "\n") 0 -}} - {{- $shortSummary | htmlUnescape }}{{ if gt (len .Summary) (len $shortSummary) }} {{ end -}} + {{- $shortSummary := index (split .Summary "

") 0 -}} + {{- $shortSummary | plainify | htmlUnescape | strings.TrimSpace }}