2022-11-13 20:52:45 +01:00
< head >
< meta charset = "utf-8" >
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" >
< meta name = "viewport" content = "width=device-width, intial-scale=1" >
< meta name = "author" content = "{{ .Site.Params.Author }}" >
2023-01-22 00:47:23 +01:00
{{- $title := print .Site.Title " | " .Title -}}
2022-11-13 20:52:45 +01:00
{{ if .IsHome }}{{ $title := .Site.Title }} {{ end }}
< title > {{ $title }}< / title >
< meta name = "description" content = "{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" >
{{/* compressed soll besser sein als minify bei SASS */}}
2023-01-22 00:47:23 +01:00
{{- $sassOptions := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) "includePaths" "assets/bootstrap/scss") -}}
{{- $sassStyle := resources.Get "_own/sass/main.scss" | resources.ToCSS $sassOptions | minify -}}
2022-11-13 20:52:45 +01:00
< link rel = "stylesheet" type = "text/css" href = "{{ $sassStyle.RelPermalink | relURL }}" >
2023-01-22 00:47:23 +01:00
{{- $style := resources.Match "_own/css/**.css" | resources.Concat "css/custom.css" | minify -}}{{/* .Resources.GetMatch "css/**.css" */}}
2022-11-13 20:52:45 +01:00
< link rel = "stylesheet" type = "text/css" href = "{{ $style.RelPermalink | relURL }}" >
2023-01-22 00:47:23 +01:00
{{- if isset .Site.Params "custom_css" -}}
2022-11-13 20:52:45 +01:00
{{ range .Site.Params.custom_css }}
2023-01-22 00:47:23 +01:00
< link rel = "stylesheet" type = "text/css" href = "{{ . | relURL }}" >
{{- end -}}
{{- end -}}
{{ range .AlternativeOutputFormats }}
{{ printf `< link rel = "%s" type = "%s" href = "%s" title = "%s" / > ` .Rel .MediaType.Type (.Permalink | relURL) $.Site.Title | safeHTML }}
{{- end }}
2022-11-13 20:52:45 +01:00
< / head >