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

github.com/EmielH/tale-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Hollander <EmielH@users.noreply.github.com>2018-10-07 11:32:34 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2018-10-07 11:32:34 +0300
commitb22abdc7f43ef26a63e28e67c7045d73b1ec6a8a (patch)
treebdf73e4d65f0609b6fc07070a9ff09536576f199 /layouts
parent5d20e1cae14ed1c025c536ecfbbb21cc2d7efbe6 (diff)
Add manually setting the summary in page frontmatter
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 5d946f5..918ca5c 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -10,7 +10,7 @@
<div class="catalogue-line"></div>
<p>
- {{ .Summary }}
+ {{ if isset .Params "summary" }}{{ .Params.Summary }}{{ else }}{{ .Summary }}{{ end }}
</p>
</div>