Make the CSS assets and bundle the global CSS.

This commit is contained in:
steverusso 2020-06-01 19:44:05 -04:00
parent 13a4561745
commit 5743d57d6d
4 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
<link rel="stylesheet" href="/icons.css"> {{ $sheets := slice }}
<link rel="stylesheet" href="/simplesystems.css"> {{ range slice "icons.css" "simplesystems.css" "light-theme.css" }}
<link rel="stylesheet" href="/light-theme.css"> {{ $sheets = $sheets | append (resources.Get .) }}
{{ end }}
{{ $css := $sheets | resources.Concat "/css/main.css" | resources.Fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}">