summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramzrk22020-04-23 19:49:06 +0800
committeramzrk22020-04-23 19:49:06 +0800
commitfc1e94bba67b0ac4523d67963a2ffa227abb0da1 (patch)
tree6152c864b0d5cc9488135fec4f25ccb8858ac00a
parent47e7b0846e68cd0713d8ff00763351c81486c725 (diff)
downloadhugo-theme-fuji-fc1e94bba67b0ac4523d67963a2ffa227abb0da1.tar.gz
hugo-theme-fuji-fc1e94bba67b0ac4523d67963a2ffa227abb0da1.tar.bz2
hugo-theme-fuji-fc1e94bba67b0ac4523d67963a2ffa227abb0da1.zip
SEO optimization fix
-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 5b6de37..78e5aab 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -14,7 +14,7 @@
<title>{{ .Title }} - {{ .Site.Title }}</title>
{{ end }}
<meta name="author" content="{{if .Params.author }}{{ .Params.author }}{{ else }}{{ .Site.Params.author }}{{ end }}" />
-<meta name="description" content="{{if .Params.description }}{{ .Params.description }}{{ else }}{{ .Site.Params.description }}{{ end }}" />
+<meta name="description" content="{{if .Params.description }}{{ .Params.description }}{{ else if .Summary }}{{ .Summary }}{{ else }}{{ .Site.Params.description }}{{ end }}" />
{{ if .Params.tags }}
<meta name="keywords" content="{{ delimit .Params.tags ", " }}" />
{{ end }}