aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/head-css.html
blob: 423db0cd4ba304d0abcbbf38a56a131e088cbc83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{- $default := resources.Get "css/default.css"        -}}
{{- $syntax  := resources.Get "css/default-syntax.css" -}}
{{- $simple  := resources.Get "css/default-simple.css" -}}
{{- $fast    := resources.Get "css/default-fast.css"   -}}

{{- $css :=
  slice $default $syntax |
  resources.Concat "css/bundle.css" |
  resources.Minify |
  fingerprint |
-}}

{{ if .Site.Params.site.production }}
<link rel="stylesheet" href="{{ $css.Permalink }}"     title="Default" />
{{ else }}
<link rel="stylesheet" href="{{ $default.Permalink }}" title="Default" />
<link rel="stylesheet" href="{{ $syntax.Permalink }}"                  />
{{ end }}

<link rel="alternate stylesheet" href="{{ $simple.Permalink }}" />
<link rel="alternate stylesheet" href="{{ $fast.Permalink   }}" />