Add implementation of additional meta fiels in head tag

Closes #28
This commit is contained in:
Christian Wolf 2024-02-11 17:03:26 +01:00
parent 21ab54d0f4
commit cebc5b0c1e

View File

@ -2,6 +2,9 @@
<meta charset="utf-8">
<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 }}
{{ $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 }}">