Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Mitrichius/hugo-theme-anubis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Baker <quentin@quentb.com>2021-10-12 21:46:36 +0300
committerQuentin Baker <quentin@quentb.com>2021-10-12 21:48:03 +0300
commit89357fefec5b6dc4f5d102e22ff98240477f640a (patch)
tree1887f4cdf4ed8e3efde280f15f0a67c9e32dbc89
parenta89f25c40068b2ee3939f219812bc4590c80e7f9 (diff)
modified post summary to use desc if provided
-rw-r--r--layouts/partials/post-summary.html6
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 }}&hellip;
+ {{ end }}
</div>
{{ end }}
{{ if and (.Truncated) (.Site.Params.readMore) }}