diff options
author | Somrat Sorkar <37659754+somratpro@users.noreply.github.com> | 2021-04-17 06:08:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-17 06:08:52 +0300 |
commit | eace8cc2c930593e98639c62234cb7932cc1c1ca (patch) | |
tree | 0fa48abea6e38770ae6349490137b4ae335922f6 | |
parent | 1ea4b07d67b92d998056a3017705a1d9556fd0d1 (diff) | |
parent | 309749bc9cdddee07d878708a781b1c9dfbea36b (diff) |
Merge pull request #46 from selcuk/title-fix
Use the .Title value for the <title> tag when available
-rw-r--r-- | layouts/partials/head.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 7c49453..bbc4ae5 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,6 +1,6 @@ <head> <meta charset="utf-8"> - <title>{{ site.Title }}</title> + <title>{{ with .Title }}{{ . }}{{ else }}{{ with site.Title }}{{ . }}{{ end }}{{ end }}</title> {{ "<!-- mobile responsive meta -->" | safeHTML }} <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> @@ -27,4 +27,4 @@ {{ template "_internal/opengraph.html" . }} {{ template "_internal/google_analytics_async.html" . }} -</head>
\ No newline at end of file +</head> |