diff options
author | Timo Ollech <hi@iromeister.de> | 2020-02-11 23:40:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 23:40:23 +0300 |
commit | 2dcf88303aa950b5ee78bf723a72401c5c33fa70 (patch) | |
tree | bd81a25a002dab314519d73323660125bddcc447 /layouts | |
parent | 7b9ac34f10bd29ea5fd600b6b61d5b85ee501ee3 (diff) |
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.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 4 |
1 files changed, 1 insertions, 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 @@ <span class="description"> {{ if isset .Params "description" }} {{ .Description }} - {{ else if gt (len .RawContent) 120 }} - {{ slicestr .RawContent 0 120 }}... {{ else }} - {{ .RawContent }} + {{ .Summary }}… {{ end }} </span> </div> |