list: add ability to hide summary on list

to hide summary, add to site config
params:
  hideSummary: true
This commit is contained in:
Aditya Telange 2020-08-28 16:44:50 +05:30
parent 7f7d8cfb22
commit c0b3ea348f
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
1 changed files with 2 additions and 0 deletions

View File

@ -38,9 +38,11 @@
{{- if .Draft }}<div class="entry-isdraft"><sup>&nbsp&nbsp[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 }} .