From 2dcf88303aa950b5ee78bf723a72401c5c33fa70 Mon Sep 17 00:00:00 2001 From: Timo Ollech Date: Tue, 11 Feb 2020 21:40:23 +0100 Subject: 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 }} -- cgit v1.2.3