summaryrefslogtreecommitdiffstats
path: root/layouts/page
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/page
parent10ae24b9f7cafb33ca1efb00081fca8d7f58cbc7 (diff)
downloadgohugo-theme-ed-d519fa3153c53197b833f22cb3f1e64d3b96afea.tar.gz
Provide ability to create cutom page title
Diffstat (limited to 'layouts/page')
-rw-r--r--layouts/page/single.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/page/single.html b/layouts/page/single.html
new file mode 100644
index 0000000..03c488a
--- /dev/null
+++ b/layouts/page/single.html
@@ -0,0 +1,7 @@
+{{ define "main" }}
+<article class="page">
+ <h1 class="page-title">{{ .Params.caption | default .Title }}</h1>
+ {{ .Content }}
+</article>
+{{ end }}
+