diff options
author | Thibaud Lepretre <thibaud.lepretre@gmail.com> | 2017-11-26 22:10:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-26 22:10:54 +0300 |
commit | 36cb59bdebb0cbebbbf2b554fd900f854dc1d3ec (patch) | |
tree | 4bee6b42c7a0aa91f236415446c0edf7b2b77018 /layouts | |
parent | 3d924358dc388f241087d0e75f4471888075f273 (diff) | |
parent | ae94ecc7fd1c4f9b96e9568049ff219c6fba4af8 (diff) |
Merge pull request #233 from zacbook/develop
Add custom summary / excerpt feature
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/summary.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index e78db06..d880744 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -40,7 +40,11 @@ {{ partial "post/meta" . }} </div> <div class="postShorten-excerpt" itemprop="articleBody"> - {{ .Summary }} + {{ if .Params.Summary }} + {{ .Params.Summary | markdownify }} + {{ else }} + {{ .Summary }} + {{ end }} <p> <a href="{{ .Permalink }}" class="postShorten-excerpt_link link">{{ i18n "post.read_more" }}</a> {{ with .Params.readingtime }} |