Skip to content
Permalink
Browse files

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.
  • Loading branch information
iromeister committed Feb 11, 2020
1 parent 7b9ac34 commit 2dcf88303aa950b5ee78bf723a72401c5c33fa70
Showing with 1 addition and 3 deletions.
  1. +1 −3 layouts/index.html
@@ -19,10 +19,8 @@ <h2 class="section-header">
<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>

0 comments on commit 2dcf883

Please sign in to comment.
You can’t perform that action at this time.