aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorJack Morgan <jackmorgannz@gmail.com>2021-09-27 20:36:02 +1300
committerGitHub <noreply@github.com>2021-09-27 09:36:02 +0200
commit9d4916fcc24b169d693540c8f68468f621cb5e5c (patch)
treec6c0cf2c2de495648a8a0ebd5451c3690b38b03b /layouts/partials
parentf2fb37b1adb00addb533f40fa2bb0dcd7118b7d3 (diff)
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
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/docs/html-head-title.html1
-rw-r--r--layouts/partials/docs/html-head.html2
2 files changed, 2 insertions, 1 deletions
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" . -}}
-<title>{{ partial "docs/title" . }} | {{ .Site.Title -}}</title>
+<title>{{ partial "docs/html-head-title" . }}</title>
{{- $manifest := resources.Get "manifest.json" | resources.ExecuteAsTemplate "manifest.json" . }}
<link rel="manifest" href="{{ $manifest.RelPermalink }}">