mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-12 22:25:43 -04: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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue