Add fingerprinting and integrity to CSS (cache busting) #31

Merged
benjaoming merged 1 commit from benjaoming/website:fingerprint into new 2021-05-04 21:22:09 +00:00

View file

@ -16,8 +16,8 @@
<meta name="msapplication-TileColor" content="#4b3aba"> <meta name="msapplication-TileColor" content="#4b3aba">
<meta name="theme-color" content="#4b3aba"> <meta name="theme-color" content="#4b3aba">
{{ $style := resources.Get "static/css/style.scss" | resources.ToCSS | resources.Minify }} {{ $style := resources.Get "static/css/style.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}"> <link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}">
{{ if .IsHome }} {{ if .IsHome }}
{{ $homepage := "Home" }} {{ $homepage := "Home" }}