Add optional Read more. Close #47

This commit is contained in:
Dmitry Kolosov 2020-08-12 22:25:08 +03:00
parent 09f5cf0373
commit 3d08f96509
7 changed files with 14 additions and 10 deletions

View file

@ -6,11 +6,11 @@
<div class="content post-summary">
{{ .Summary | safeHTML }}
</div>
<!-- {{ if .Truncated }}
{{ if and (.Truncated) (.Site.Params.readMore) }}
<div class="read-more">
<a href="{{ .RelPermalink }}">{{ i18n "readMore" | humanize }}</a>
</div>
{{ end }} -->
{{ end }}
{{ partial "postInfo.html" . }}
</article>