2018-08-04 12:47:06 +02:00
|
|
|
{{- $inServerMode := .Site.IsServer }}
|
2018-08-04 14:50:46 +02:00
|
|
|
{{- $sass := "style.sass" }}
|
|
|
|
|
{{- $cssTarget := "css/style.css" }}
|
|
|
|
|
{{- $cssOpts := cond ($inServerMode) (dict "targetPath" $cssTarget "enableSourceMap" true) (dict "targetPath" $cssTarget "outputStyle" "compressed") }}
|
|
|
|
|
{{- $fontFace := replace .Site.Params.font.name " " "+" }}
|
|
|
|
|
{{- $fontSizes := delimit .Site.Params.font.sizes "," }}
|
|
|
|
|
{{- $fontUrl := printf "https://fonts.googleapis.com/css?family=%s:%s" $fontFace $fontSizes }}
|
2018-08-04 12:47:06 +02:00
|
|
|
<link rel="icon" type="image/png" href="{{ "/images/favicon.png" | absURL }}" />
|
2018-08-04 14:50:46 +02:00
|
|
|
<link href="{{ $fontUrl }}" rel="stylesheet">
|
2018-08-04 12:47:06 +02:00
|
|
|
{{- if $inServerMode }}
|
|
|
|
|
{{- $css := resources.Get $sass | toCSS $cssOpts }}
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ $css.Permalink }}">
|
|
|
|
|
{{- else }}
|
|
|
|
|
{{- $css := resources.Get $sass | toCSS $cssOpts | minify | fingerprint }}
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ $css.Permalink }}" integrity="{{ $css.Data.Integrity }}">
|
|
|
|
|
{{- end }}
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ "/css/icons.css" | absURL }}">
|