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

github.com/matsuyoshi30/harbor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index e746975..4e156c8 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,8 +1,7 @@
<meta charset="utf-8" />
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }}{{ end }}</title>
-{{ with .Site.Params.description }}
- <meta name="description" content="{{ . }}" />
-{{ end }}
+<meta name="description"
+ content="{{ if .Params.Description }}{{ trim .Params.Description "\n" }}{{else if .Site.Params.Description}}{{ trim .Site.Params.Description "\n" }}{{ end }}">
{{- with .Site.Author.Name }}
<meta name="author" content="{{ . }}" />
{{- end }}