summaryrefslogtreecommitdiff
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-04-22 14:11:34 +0800
committerReorx <novoreorx@gmail.com>2022-04-22 14:11:34 +0800
commit6aea4be5fad77917ce1203a371b58a6139c3530a (patch)
tree0c2e95f99d27f0097478c0f7344a3f293bedb76a /layouts/_default/list.html
parent4d93247e53eadc672416f33429c5af0ff334e5e8 (diff)
refactor post meta, use svg icons for identifier
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 6a8b3c9..01f2a62 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -65,7 +65,11 @@
</header>
{{- if (ne (.Param "hideSummary") true) }}
<section class="entry-content">
- <p>{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}</p>
+ {{ if .Description }}
+ <p>{{ .Description | plainify | htmlUnescape }}</p>
+ {{ else }}
+ <p>{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}</p>
+ {{ end }}
</section>
{{- end }}
{{- if not (.Param "hideMeta") }}