head: show title insted of description

on non-home pages
This commit is contained in:
Aditya Telange 2020-09-06 21:16:55 +05:30
parent 11226ff1fe
commit 26aa913367
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
1 changed files with 1 additions and 1 deletions

View File

@ -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 }}