forked from TrueCloudLab/dot-hugo
partials: Support custom title
Add opportunity to override default page title Signed-off-by: Dmitriy Rychkov <d.rychkov@yadro.com>
This commit is contained in:
parent
72d06db4e8
commit
95e99e3d4b
2 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,7 @@
|
|||
</div>
|
||||
<div class="col-lg-8">
|
||||
<div class="p-lg-5 p-4 bg-white" id="content">
|
||||
<h2 class="mb-5" id="title">{{ .Title }}</h2>
|
||||
<h2 class="mb-5" id="title">{{ partial "title.html" . }}</h2>
|
||||
{{ if .Content }}
|
||||
<div class="content">
|
||||
{{ if isset .Params "status" }}
|
||||
|
|
1
layouts/partials/title.html
Normal file
1
layouts/partials/title.html
Normal file
|
@ -0,0 +1 @@
|
|||
{{ .Title }}
|
Loading…
Reference in a new issue