aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/base-css.html
blob: 662aa6b2bcf38c29c57853e0ec624fb6cea51768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{{- $default := resources.Get "css/default.css" -}}
{{- $syntax  := resources.Get "css/default-syntax.css" -}}
{{- $simple  := resources.Get "css/default-simple.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 }}"                  />
<link rel="alternate stylesheet" href="{{ $simple.Permalink }}"        />
{{ end }}