add support to disable summary #85
This commit is contained in:
parent
b9c021cab7
commit
dc52fdf1b0
2 changed files with 6 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue