Add fingerprinting and integrity to CSS (cache busting)

This commit is contained in:
Benjamin Bach 2021-05-04 23:15:46 +02:00
parent 3f140e8361
commit c90af137f5
Signed by: benjaoming
GPG key ID: 7D49441634585664

View file

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