Fix empty description meta tag

This commit is contained in:
Reijnn 2019-03-05 13:26:06 +01:00
parent 26fafde0f5
commit 2f53ecf885

View file

@ -4,7 +4,7 @@
<meta name="author" <meta name="author"
content="{{ if .Params.author }}{{ .Params.author }}{{ else }}{{ range .Site.Author }}{{ . }} {{ end }}{{ end }}"> content="{{ if .Params.author }}{{ .Params.author }}{{ else }}{{ range .Site.Author }}{{ . }} {{ end }}{{ end }}">
<meta name="description" <meta name="description"
content="{{ if .IsHome }}{{ .Site.Params.Subtitle }}{{ else }}{{ .Summary | plainify }}{{ end }}" /> content="{{ if .IsHome }}{{ .Site.Params.homeSubtitle }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
<meta name="keywords" content="{{ .Site.Params.keywords }}" /> <meta name="keywords" content="{{ .Site.Params.keywords }}" />
<meta name="robots" content="noodp" /> <meta name="robots" content="noodp" />
<link rel="canonical" href="{{ .Permalink }}" /> <link rel="canonical" href="{{ .Permalink }}" />
@ -29,9 +29,9 @@
<link rel="stylesheet" href="{{ $style.Permalink }}"> <link rel="stylesheet" href="{{ $style.Permalink }}">
{{ range $val := $.Site.Params.customCSS }} {{ range $val := $.Site.Params.customCSS }}
{{ if gt (len $val) 0 }} {{ if gt (len $val) 0 }}
<link rel="stylesheet" type="text/css" href="{{ $val }}"> <link rel="stylesheet" type="text/css" href="{{ $val }}">
{{ end }} {{ end }}
{{ end }} {{ end }}
<!-- Icons --> <!-- Icons -->