From 9d4916fcc24b169d693540c8f68468f621cb5e5c Mon Sep 17 00:00:00 2001 From: Jack Morgan Date: Mon, 27 Sep 2021 20:36:02 +1300 Subject: Allow site title to be customised via parital (#384) * Allow site title to be customised via parital * Modify readme to highlight available partials * Rename template for consistency * Move title tags to head partial --- layouts/partials/docs/html-head-title.html | 1 + layouts/partials/docs/html-head.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/docs/html-head-title.html (limited to 'layouts') diff --git a/layouts/partials/docs/html-head-title.html b/layouts/partials/docs/html-head-title.html new file mode 100644 index 0000000..49a109d --- /dev/null +++ b/layouts/partials/docs/html-head-title.html @@ -0,0 +1 @@ +{{ partial "docs/title" . }} | {{ .Site.Title -}} diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 4f58114..333a885 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -6,7 +6,7 @@ {{- template "_internal/opengraph.html" . -}} -{{ partial "docs/title" . }} | {{ .Site.Title -}} +{{ partial "docs/html-head-title" . }} {{- $manifest := resources.Get "manifest.json" | resources.ExecuteAsTemplate "manifest.json" . }} -- cgit v1.2.3