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.
This commit is contained in:
parent
8211a72cc3
commit
abfb047db2
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue