Allow custom summaries
This is an "escape hatch" that can be used when neither automatic nor manual summary splitting is sufficient to create a good summary. This is specifically useful for articles that begin with a disclaimer or anything else that shouldn't be included in the summary. It's also useful for footnote links and other mid-text items that should be excluded from the summary.
This commit is contained in:
parent
e78f3c8de9
commit
c28a214abb
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@
|
|||
{{ partial "post_meta.html" . }}
|
||||
<div class="post-entry">
|
||||
{{ if .Truncated }}
|
||||
{{ .Summary }}
|
||||
{{ if .Params.summary }}{{ .Params.summary }}{{ else }}{{ .Summary }}{{ end }}
|
||||
<a href="{{ .Permalink }}" class="post-read-more">[{{ i18n "readMore" }}]</a>
|
||||
{{ else }}
|
||||
{{ .Content }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue