add support to disable summary #85
This commit is contained in:
parent
b9c021cab7
commit
dc52fdf1b0
@ -76,6 +76,7 @@ params:
|
||||
paginationSinglePost: true
|
||||
style: light-without-switcher
|
||||
readMore: false
|
||||
disableSummary: false
|
||||
# utteranc.es support
|
||||
utterancesRepo: "" # mandatory
|
||||
utterancesTheme: "" # optional
|
||||
|
@ -3,9 +3,11 @@
|
||||
<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}"><a class="u-url" href="{{ .RelPermalink }}">{{ trim .Title " " }}</a></h1>
|
||||
</header>
|
||||
|
||||
<div class="content post-summary p-summary">
|
||||
{{ .Summary | safeHTML }}
|
||||
</div>
|
||||
{{ if not .Site.Params.disableSummary }}
|
||||
<div class="content post-summary p-summary">
|
||||
{{ .Summary | safeHTML }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ if and (.Truncated) (.Site.Params.readMore) }}
|
||||
<div class="read-more">
|
||||
<a class="u-url" href="{{ .RelPermalink }}">{{ i18n "readMore" | humanize }}</a>
|
||||
|
Loading…
Reference in New Issue
Block a user