summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad Noor Abu Khleif <moh.noor94@gmail.com>2021-03-18 14:16:32 +0200
committerGitHub <noreply@github.com>2021-03-18 17:46:32 +0530
commitad818253457792f1abc8dd1040b64add908c13dd (patch)
tree0ad44a41ce19e94fad14d097e61b8771eaf650f0
parent24f71d7f15ebad000abad9e940d5113b1408826c (diff)
Allow selective summary (in list pages) hiding in front matter (#292)
-rw-r--r--layouts/_default/list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index ab98c95..4f286c0 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -49,7 +49,7 @@
{{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp;&nbsp;[draft]</sup></div>{{- end }}
</h2>
</header>
- {{- if (ne .Site.Params.hideSummary true)}}
+ {{- if (ne (.Param "hideSummary") true)}}
<section class="entry-content">
<p>{{ .Summary | plainify | htmlUnescape }}...</p>
</section>