aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/head-css.html
blob: 6e9eb56df8c3e4aa9a3c08b7e329c50443e2dad9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{{- $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"   -}}
{{- $math    := resources.Get "css/default-mathml.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="stylesheet" href="{{ $math.Permalink }}" />

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