From 95e99e3d4b3db02fd946e9f51c8a52303c5ea73b Mon Sep 17 00:00:00 2001 From: Dmitry Rychkov Date: Tue, 14 Feb 2023 13:26:26 +0300 Subject: [PATCH] partials: Support custom title Add opportunity to override default page title Signed-off-by: Dmitriy Rychkov --- layouts/partials/default.html | 2 +- layouts/partials/title.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/title.html diff --git a/layouts/partials/default.html b/layouts/partials/default.html index 8bb871f..a69fccd 100644 --- a/layouts/partials/default.html +++ b/layouts/partials/default.html @@ -30,7 +30,7 @@
-

{{ .Title }}

+

{{ partial "title.html" . }}

{{ if .Content }}
{{ if isset .Params "status" }} diff --git a/layouts/partials/title.html b/layouts/partials/title.html new file mode 100644 index 0000000..dbae70d --- /dev/null +++ b/layouts/partials/title.html @@ -0,0 +1 @@ +{{ .Title }}