mirror of
https://github.com/GuerillaStudio/now-playing
synced 2024-11-09 14:51:52 +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" }}
|
{{ $sass := resources.Get "/scss/style.scss" }}
|
||||||
{{ $style := $sass | resources.ToCSS | minify | fingerprint }}
|
{{ $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>
|
</head>
|
||||||
|
|
||||||
<body class="sans-serif">
|
<body class="sans-serif">
|
||||||
|
@ -51,7 +52,7 @@
|
||||||
<script>
|
<script>
|
||||||
window.albumsUrls = [
|
window.albumsUrls = [
|
||||||
{{ range where .Site.RegularPages "Type" "in" "musics" }}
|
{{ range where .Site.RegularPages "Type" "in" "musics" }}
|
||||||
"{{ .Permalink}}",
|
"{{ .Permalink }}",
|
||||||
{{ end }}
|
{{ end }}
|
||||||
]
|
]
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue