Merge pull request #105 from Qrbaker/master

Tweak theme to detect and use front matter "description" field
This commit is contained in:
Dmitry Kolosov 2021-10-13 09:43:35 +03:00 committed by GitHub
commit 8b3e9c711e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,11 @@
{{ if not .Site.Params.disableSummary }}
<div class="content post-summary p-summary">
{{ .Summary | safeHTML }}
{{ if isset .Params "description" }}
{{ .Description | safeHTML }}
{{ else }}
{{ .Summary | safeHTML }}&hellip;
{{ end }}
</div>
{{ end }}
{{ if and (.Truncated) (.Site.Params.readMore) }}