diff options
author | Benjamin Patch <ben@benjaminpatch.com> | 2020-03-14 23:18:53 +0300 |
---|---|---|
committer | Benjamin Patch <ben@benjaminpatch.com> | 2020-03-14 23:18:53 +0300 |
commit | b069e9f48a69277e76d12c383381321e2ee691bb (patch) | |
tree | e25f349a48832bb648c9699db141283df7eddbcb | |
parent | 8bb8406d18bc9ecce6dcceed8c72dd8d290b5914 (diff) |
add page title to title tag
-rw-r--r-- | layouts/partials/head.html | 8 |
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 }}"> |