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

github.com/kimcc/hugo-theme-noteworthy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkimcc <15278020+kimcc@users.noreply.github.com>2020-03-31 07:13:03 +0300
committerGitHub <noreply@github.com>2020-03-31 07:13:03 +0300
commit9ec04a297870ce8aeb7eb341b5904fb4867c1128 (patch)
tree61cb8eba89ca22da9bfeecdc17eeeabbe5ce93ea
parent36bafaf53cbf9fcfcb0db8fcd48c613ce2e7f8bf (diff)
parent8bad7c8634e7545005e1b1144a19133b896489ff (diff)
Merge pull request #10 from Mohammed90/patch-1
Include page title if exists
-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 998cb3d..b517fd1 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="format-detection" content="telephone=no"/>
- <title>{{ .Site.Title }}</title>
+ <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
<!-- Icons -->
<link rel="apple-touch-icon" sizes="180x180" href="{{ "apple-touch-icon.png" | relURL }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ "favicon-32x32.png" | relURL }}">
@@ -30,4 +30,4 @@
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end }}
{{ template "_internal/google_analytics.html" . }}
-</head> \ No newline at end of file
+</head>