mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +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 }}
|
{{- if .Draft }}<div class="entry-isdraft"><sup>  [draft]</sup></div>{{- end }}
|
||||||
</h2>
|
</h2>
|
||||||
</header>
|
</header>
|
||||||
|
{{if (ne .Site.Params.hideSummary true)}}
|
||||||
<section class="entry-content">
|
<section class="entry-content">
|
||||||
<p>{{ .Summary | plainify | htmlUnescape }}...</p>
|
<p>{{ .Summary | plainify | htmlUnescape }}...</p>
|
||||||
</section>
|
</section>
|
||||||
|
{{ end }}
|
||||||
<footer class="entry-footer">
|
<footer class="entry-footer">
|
||||||
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
||||||
{{ if $.Site.Params.ShowReadingTime }} .
|
{{ if $.Site.Params.ShowReadingTime }} .
|
||||||
|
Loading…
Reference in New Issue
Block a user