Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vividvilla/ezhil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Ollech <hi@iromeister.de>2020-02-11 23:40:23 +0300
committerGitHub <noreply@github.com>2020-02-11 23:40:23 +0300
commit2dcf88303aa950b5ee78bf723a72401c5c33fa70 (patch)
treebd81a25a002dab314519d73323660125bddcc447
parent7b9ac34f10bd29ea5fd600b6b61d5b85ee501ee3 (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.
-rw-r--r--layouts/index.html4
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 }}&hellip;
{{ end }}
</span>
</div>