Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/puresyntax71/hugo-theme-chunky-poster.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Patch <ben@benjaminpatch.com>2020-03-14 23:18:53 +0300
committerBenjamin Patch <ben@benjaminpatch.com>2020-03-14 23:18:53 +0300
commitb069e9f48a69277e76d12c383381321e2ee691bb (patch)
treee25f349a48832bb648c9699db141283df7eddbcb
parent8bb8406d18bc9ecce6dcceed8c72dd8d290b5914 (diff)
add page title to title tag
-rw-r--r--layouts/partials/head.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 54e9c9d..f9d3910 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,6 +1,12 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
-<title>{{ .Site.Title }}</title>
+
+<title>
+ {{ block "title" . }}
+ {{ with .Params.Title }} {{ . }} | {{ end }}
+ {{ .Site.Title }}
+ {{ end }}
+</title>
{{- if .Description -}}
<meta name="description" content="{{ .Description }}">