diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-15 15:27:53 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-15 15:27:53 +0200 |
| commit | d519fa3153c53197b833f22cb3f1e64d3b96afea (patch) | |
| tree | beb3916ad0d187ab0698471aa233dac6a930f680 /layouts | |
| parent | 10ae24b9f7cafb33ca1efb00081fca8d7f58cbc7 (diff) | |
| download | gohugo-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 }} + |
