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:
Dmitry Rychkov 2023-02-14 13:26:26 +03:00 committed by Stanislav Bogatyrev
parent 72d06db4e8
commit 95e99e3d4b
2 changed files with 2 additions and 1 deletions

View file

@ -30,7 +30,7 @@
</div> </div>
<div class="col-lg-8"> <div class="col-lg-8">
<div class="p-lg-5 p-4 bg-white" id="content"> <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 }} {{ if .Content }}
<div class="content"> <div class="content">
{{ if isset .Params "status" }} {{ if isset .Params "status" }}

View file

@ -0,0 +1 @@
{{ .Title }}