Fix page header

Add summray as a fllback to descriptiona and remove doubled comma in keywords
This commit is contained in:
Christian Wolf 2024-05-23 09:24:17 +02:00
parent dfee92be46
commit abec3392c8

View File

@ -3,8 +3,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="{{ with .Params.robots }}{{ . }}{{ else }}index,follow{{ end }}">
<meta name="generator" content="Hugo static site generator">
{{ with .Params.description }}<meta name="description" content="{{ . }}">{{ end }}
{{ with .Keywords }}<meta name="keywords" content="{{ delimit . ",," ",," }}">{{ end }}
{{ with .Params.description }}
<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)) }}
{{ $scss := resources.Get "css/main.scss" | resources.ToCSS $options }}
<link rel="stylesheet" type="text/css" href="{{ $scss.RelPermalink }}" />