summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-15 15:27:53 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-15 15:27:53 +0200
commitd519fa3153c53197b833f22cb3f1e64d3b96afea (patch)
treebeb3916ad0d187ab0698471aa233dac6a930f680 /layouts
parent10ae24b9f7cafb33ca1efb00081fca8d7f58cbc7 (diff)
downloadgohugo-theme-ed-d519fa3153c53197b833f22cb3f1e64d3b96afea.tar.gz
Provide ability to create cutom page title
Diffstat (limited to 'layouts')
-rw-r--r--layouts/page/single.html (renamed from layouts/pages/single.html)3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/pages/single.html b/layouts/page/single.html
index 8e67367..03c488a 100644
--- a/layouts/pages/single.html
+++ b/layouts/page/single.html
@@ -1,6 +1,7 @@
{{ define "main" }}
<article class="page">
- <h1 class="page-title">{{ .Title }}</h1>
+ <h1 class="page-title">{{ .Params.caption | default .Title }}</h1>
{{ .Content }}
</article>
{{ end }}
+