mirror of
https://github.com/GuerillaStudio/now-playing
synced 2025-01-04 20:21:55 +00:00
add subresource integrity for the CSS
This commit is contained in:
parent
6b8bd255e6
commit
69e3405ab2
1 changed files with 3 additions and 2 deletions
|
@ -37,7 +37,8 @@
|
|||
|
||||
{{ $sass := resources.Get "/scss/style.scss" }}
|
||||
{{ $style := $sass | resources.ToCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||
{{ $secureStyle := $style | resources.Fingerprint "sha512" }}
|
||||
<link rel="stylesheet" href="{{ $secureStyle.Permalink }}" integrity="{{ $secureStyle.Data.Integrity }}">
|
||||
</head>
|
||||
|
||||
<body class="sans-serif">
|
||||
|
|
Loading…
Reference in a new issue