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" />
{{ end }}
<div style="margin-bottom: 6em;"class="post-content">
<!--{{ with .Description }}
<div class="post-content">
{{ with .Description }}
{{ . | markdownify }}
{{ else }}
{{ if .Truncated }}
{{ .Summary | markdownify }}
{{ end }}
{{ end }}-->
{{.Content}}
{{ end }}
</div>
<div><a class="read-more button" href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a></div>
</div>
{{ end }}
{{ partial "pagination.html" . }}