diff options
author | Quentin Baker <quentin@quentb.com> | 2021-10-12 21:46:36 +0300 |
---|---|---|
committer | Quentin Baker <quentin@quentb.com> | 2021-10-12 21:48:03 +0300 |
commit | 89357fefec5b6dc4f5d102e22ff98240477f640a (patch) | |
tree | 1887f4cdf4ed8e3efde280f15f0a67c9e32dbc89 | |
parent | a89f25c40068b2ee3939f219812bc4590c80e7f9 (diff) |
modified post summary to use desc if provided
-rw-r--r-- | layouts/partials/post-summary.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/partials/post-summary.html b/layouts/partials/post-summary.html index 7961f62..1098719 100644 --- a/layouts/partials/post-summary.html +++ b/layouts/partials/post-summary.html @@ -6,7 +6,11 @@ {{ if not .Site.Params.disableSummary }} <div class="content post-summary p-summary"> - {{ .Summary | safeHTML }} + {{ if isset .Params "description" }} + {{ .Description }} + {{ else }} + {{ .Summary }}… + {{ end }} </div> {{ end }} {{ if and (.Truncated) (.Site.Params.readMore) }} |