aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/head/styles.html
blob: aa7f75a21ec48fa13b4915cc944a6063c3cf544a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12

{{/* Resources */}}
{{- $reset := resources.Get "css/reset.css" -}}
{{- $main := resources.Get "css/main.css" -}}
{{- $styles := slice $reset $main | resources.Concat "css/bundle.css" -}}

{{/* Output */}}
{{- if eq hugo.Environment "development" -}}
    <link rel="stylesheet" href="{{ $styles.Permalink | absURL }}" />
{{- else -}}
    {{- $styles := $styles | minify | fingerprint -}}
    <link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" />
{{- end -}}