14 lines
832 B
HTML
14 lines
832 B
HTML
{{ $main_style := resources.Match "css/_*.css" | append (resources.Match "css/**/_*.css") | resources.Concat "css/styles.css" -}}
|
|
{{ $mobile_style := resources.Get "css/mobilemenu.css" -}}
|
|
{{ $print_style := resources.Get "css/print.css" -}}
|
|
{{ if ne hugo.Environment "development" -}}
|
|
{{ $main_style = $main_style | minify | fingerprint -}}
|
|
{{ $mobile_style = $mobile_style | minify | fingerprint -}}
|
|
{{ $print_style = $print_style | minify | fingerprint -}}
|
|
{{ end -}}
|
|
{{ with resources.Get "css/layers-init.css" }}<style>{{ .Content | safeCSS }}</style>{{ end }}
|
|
<link rel="stylesheet" href="{{ $main_style.RelPermalink }}">
|
|
{{ if $.Param "mobilemenu" -}}
|
|
<link rel="stylesheet" href="{{ $mobile_style.RelPermalink }}" media="screen">
|
|
{{ end -}}
|
|
<link rel="stylesheet" href="{{ $print_style.RelPermalink }}" media="print">
|