mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-22 17:15:07 +01:00
list: add ability to hide summary on list
to hide summary, add to site config params: hideSummary: true
This commit is contained in:
parent
7f7d8cfb22
commit
c0b3ea348f
@ -38,9 +38,11 @@
|
||||
{{- if .Draft }}<div class="entry-isdraft"><sup>  [draft]</sup></div>{{- end }}
|
||||
</h2>
|
||||
</header>
|
||||
{{if (ne .Site.Params.hideSummary true)}}
|
||||
<section class="entry-content">
|
||||
<p>{{ .Summary | plainify | htmlUnescape }}...</p>
|
||||
</section>
|
||||
{{ end }}
|
||||
<footer class="entry-footer">
|
||||
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
||||
{{ if $.Site.Params.ShowReadingTime }} .
|
||||
|
Loading…
Reference in New Issue
Block a user