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:
authorVivek R <vividvilla@gmail.com>2020-02-14 18:04:43 +0300
committerGitHub <noreply@github.com>2020-02-14 18:04:43 +0300
commit38751fe8623c96bc74d80f2db01712c2be93e515 (patch)
treebd81a25a002dab314519d73323660125bddcc447
parent7b9ac34f10bd29ea5fd600b6b61d5b85ee501ee3 (diff)
parent2dcf88303aa950b5ee78bf723a72401c5c33fa70 (diff)
Merge pull request #43 from iromeister/patch-1
replace .RawContent with .Summary - looks way better
-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>