Merge pull request #43 from iromeister/patch-1

replace .RawContent with .Summary - looks way better
This commit is contained in:
Vivek R 2020-02-14 20:34:43 +05:30 committed by GitHub
commit ca1b91f2a2

View File

@ -19,10 +19,8 @@
<span class="description"> <span class="description">
{{ if isset .Params "description" }} {{ if isset .Params "description" }}
{{ .Description }} {{ .Description }}
{{ else if gt (len .RawContent) 120 }}
{{ slicestr .RawContent 0 120 }}...
{{ else }} {{ else }}
{{ .RawContent }} {{ .Summary }}&hellip;
{{ end }} {{ end }}
</span> </span>
</div> </div>