Merge pull request 'Add fingerprinting and integrity to CSS (cache busting)' (#31) from benjaoming/website:fingerprint into new
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #31
This commit is contained in:
commit
fe5dac6c20
|
@ -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" }}
|
||||
|
|
Loading…
Reference in a new issue