diff options
-rw-r--r-- | layouts/partials/head.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4e156c8..42fc5f4 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,7 +1,12 @@ <meta charset="utf-8" /> <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }}{{ end }}</title> <meta name="description" - content="{{ if .Params.Description }}{{ trim .Params.Description "\n" }}{{else if .Site.Params.Description}}{{ trim .Site.Params.Description "\n" }}{{ end }}"> + content="{{ if .Params.Description }} + {{- .Params.Description -}} + {{else if .Site.Params.Description}} + {{- .Site.Params.Description -}} + {{ end }}" +> {{- with .Site.Author.Name }} <meta name="author" content="{{ . }}" /> {{- end }} |