Skip to content
Permalink
Browse files

Fix html meta author generation

Fix #37
  • Loading branch information
carsonip committed Dec 1, 2019
1 parent 45891ee commit b2105779853689fbc5f09d9ae0e772dd49b30649
Showing with 1 addition and 2 deletions.
  1. +1 −2 layouts/partials/meta.html
@@ -1,9 +1,8 @@
{{- $author := .Site.Params.Author -}}
{{- $description := or (.Description) (.Site.Params.Description) -}}
{{- $keywords := or (.Keywords) (.Site.Params.Keywords) -}}
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
{{ if $author -}} <meta name="author" content="{{ range $author }} {{ .displayname }}, {{ end}}"> {{- end }}
{{ with .Site.Params.Author -}}<meta name="author" content="{{ . }}">{{- end }}
{{ if $description -}} <meta name="description" content="{{ $description }}"> {{- end }}
{{ if $keywords -}} <meta name="keywords" content="{{ range $keywords }}{{ . }},{{ end }}"> {{- end }}

0 comments on commit b210577

Please sign in to comment.
You can’t perform that action at this time.