Fix page header
Add summray as a fllback to descriptiona and remove doubled comma in keywords
This commit is contained in:
parent
dfee92be46
commit
abec3392c8
@ -3,8 +3,14 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="robots" content="{{ with .Params.robots }}{{ . }}{{ else }}index,follow{{ end }}">
|
<meta name="robots" content="{{ with .Params.robots }}{{ . }}{{ else }}index,follow{{ end }}">
|
||||||
<meta name="generator" content="Hugo static site generator">
|
<meta name="generator" content="Hugo static site generator">
|
||||||
{{ with .Params.description }}<meta name="description" content="{{ . }}">{{ end }}
|
{{ with .Params.description }}
|
||||||
{{ with .Keywords }}<meta name="keywords" content="{{ delimit . ",," ",," }}">{{ end }}
|
<meta name="description" content="{{ . }}">
|
||||||
|
{{ else }}
|
||||||
|
{{ with .Params.summary }}
|
||||||
|
<meta name="description" content="{{ . }}">
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ with .Keywords }}<meta name="keywords" content="{{ delimit . "," "," }}">{{ end }}
|
||||||
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) }}
|
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) }}
|
||||||
{{ $scss := resources.Get "css/main.scss" | resources.ToCSS $options }}
|
{{ $scss := resources.Get "css/main.scss" | resources.ToCSS $options }}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ $scss.RelPermalink }}" />
|
<link rel="stylesheet" type="text/css" href="{{ $scss.RelPermalink }}" />
|
||||||
|
Loading…
Reference in New Issue
Block a user