mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-21 00:52:44 +02:00
remove redundant layout, add showSummary switch
This commit is contained in:
parent
c5e3a781e9
commit
fa6bda5448
4 changed files with 6 additions and 22 deletions
layouts
|
@ -22,8 +22,10 @@
|
|||
{{ if .Description }}
|
||||
<p>{{ .Description }}</p>
|
||||
{{ else }}
|
||||
{{ if .Site.Params.showSummary }}
|
||||
<p>{{ truncate 140 .Summary }}</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue