From abfb047db2c2d8faa4c9836a44f1c067a1a62a3e Mon Sep 17 00:00:00 2001 From: Timo Ollech Date: Tue, 11 Feb 2020 21:40:23 +0100 Subject: [PATCH] replace .RawContent with .Summary - looks way better .Summary retains all formatting of posts for the paginator which looks much nicer than .RawContent. The length of the .Summary (in words, not characters) can be set via the config variable summaryLength. --- layouts/index.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index d7711bc..1c97468 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -19,10 +19,8 @@ {{ if isset .Params "description" }} {{ .Description }} - {{ else if gt (len .RawContent) 120 }} - {{ slicestr .RawContent 0 120 }}... {{ else }} - {{ .RawContent }} + {{ .Summary }}… {{ end }}