diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-15 15:31:45 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-15 15:31:45 +0200 |
| commit | b4cdaaab0c9f924764d485b1b63c1ca920965b68 (patch) | |
| tree | 3efbad92c02d83b35ee3e49488ddbbcb49209474 /layouts | |
| parent | d519fa3153c53197b833f22cb3f1e64d3b96afea (diff) | |
| download | gohugo-theme-ed-b4cdaaab0c9f924764d485b1b63c1ca920965b68.tar.gz | |
Provide ability to create cutom page title
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/single.html | 2 | ||||
| -rw-r--r-- | layouts/dramas/single.html | 2 | ||||
| -rw-r--r-- | layouts/narratives/single.html | 2 | ||||
| -rw-r--r-- | layouts/poems/single.html | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index cf250bf..90bb5b5 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{ define "main" }} <article class="post"> - <h1 class="text-title">{{ .Title }}</h1> + <h1 class="text-title">{{ .Params.caption | default .Title }}</h1> {{ .Content }} </article> {{ end }} diff --git a/layouts/dramas/single.html b/layouts/dramas/single.html index 0609384..dc31717 100644 --- a/layouts/dramas/single.html +++ b/layouts/dramas/single.html @@ -1,6 +1,6 @@ {{ define "main" }} <article class="drama"> - <h1 class="text-title">{{ .Title }}</h1> + <h1 class="text-title">{{ .Params.caption | default .Title }}</h1> <p class="byline">by {{ .Params.author }}</p> {{ .Content }} </article> diff --git a/layouts/narratives/single.html b/layouts/narratives/single.html index 6b56ef4..030af43 100644 --- a/layouts/narratives/single.html +++ b/layouts/narratives/single.html @@ -1,6 +1,6 @@ {{ define "main" }} <article class="narrative"> - <h1 class="text-title">{{ .Title }}</h1> + <h1 class="text-title">{{ .Params.caption | default .Title }}</h1> <p class="byline">by {{ .Params.author }}</p> {{ .Content }} </article> diff --git a/layouts/poems/single.html b/layouts/poems/single.html index 9ad5bfc..c55eef8 100644 --- a/layouts/poems/single.html +++ b/layouts/poems/single.html @@ -1,6 +1,6 @@ {{ define "main" }} <article class="poem poetry"> - <h1 class="text-title">{{ .Title }}</h1> + <h1 class="text-title">{{ .Params.caption | default .Title }}</h1> <p class="byline">by {{ .Params.author }}</p> {{ .Content }} </article> |
