Add robots meta tags to pages

Closes #29
This commit is contained in:
Christian Wolf 2024-02-11 16:18:26 +01:00
parent 41a13dd5d0
commit 21ab54d0f4

View File

@ -1,6 +1,7 @@
<head>
<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 }}">
{{ $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 }}">