add truncation

This commit is contained in:
Moritz Fago 2019-03-29 18:17:30 +01:00
parent 6e4280cac0
commit 9cbe727f86

View File

@ -26,16 +26,16 @@
<img src="{{ . | absURL }}" class="post-cover" /> <img src="{{ . | absURL }}" class="post-cover" />
{{ end }} {{ end }}
<div style="margin-bottom: 6em;"class="post-content"> <div class="post-content">
<!--{{ with .Description }} {{ with .Description }}
{{ . | markdownify }} {{ . | markdownify }}
{{ else }} {{ else }}
{{ if .Truncated }} {{ if .Truncated }}
{{ .Summary | markdownify }} {{ .Summary | markdownify }}
{{ end }} {{ end }}
{{ end }}--> {{ end }}
{{.Content}}
</div> </div>
<div><a class="read-more button" href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a></div>
</div> </div>
{{ end }} {{ end }}
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}