summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-09-06 21:16:55 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-09-06 21:16:55 +0530
commit26aa913367bc7fdafbe566de517af8b9dcede935 (patch)
tree3b6e9ac92cb1602252f805f97eee3743f986c746
parent11226ff1fe8a7294676bf7e4742e03cad37e7b19 (diff)
head: show title insted of description
on non-home pages
-rw-r--r--layouts/partials/head.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 6399261..63585c3 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -8,7 +8,7 @@
<meta name="description" content="{{ .Summary }}">
<meta name="author" content="{{ .Params.author | default .Site.Params.author }}">
{{- else }}
-<meta name="description" content="{{ .Site.Params.description }}">
+<meta name="description" content="{{if .IsHome}}{{ .Site.Params.description }}{{else}}{{ .Title }}{{end}}">
<meta name="author" content="{{ .Site.Params.author }}">
{{- end }}
{{ if .Site.Params.analytics.google.SiteVerificationTag }}