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

github.com/themefisher/parsa-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSomrat Sorkar <37659754+somratpro@users.noreply.github.com>2021-04-17 06:08:52 +0300
committerGitHub <noreply@github.com>2021-04-17 06:08:52 +0300
commiteace8cc2c930593e98639c62234cb7932cc1c1ca (patch)
tree0fa48abea6e38770ae6349490137b4ae335922f6
parent1ea4b07d67b92d998056a3017705a1d9556fd0d1 (diff)
parent309749bc9cdddee07d878708a781b1c9dfbea36b (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.html4
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>