Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaud Lepretre <thibaud.lepretre@gmail.com>2017-11-26 22:10:54 +0300
committerGitHub <noreply@github.com>2017-11-26 22:10:54 +0300
commit36cb59bdebb0cbebbbf2b554fd900f854dc1d3ec (patch)
tree4bee6b42c7a0aa91f236415446c0edf7b2b77018 /layouts
parent3d924358dc388f241087d0e75f4471888075f273 (diff)
parentae94ecc7fd1c4f9b96e9568049ff219c6fba4af8 (diff)
Merge pull request #233 from zacbook/develop
Add custom summary / excerpt feature
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/summary.html6
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 }}