mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 10:31:39 +01:00
assets: add fingerprint, integrity
This commit is contained in:
parent
338027b046
commit
41006c33e1
@ -23,8 +23,8 @@
|
|||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
{{- partial "footer.html" . }}
|
{{- partial "footer.html" . }}
|
||||||
</footer>
|
</footer>
|
||||||
{{ $highlight := resources.Get "highlight.min.js" | minify }}
|
{{ $highlight := resources.Get "highlight.min.js" | minify | fingerprint}}
|
||||||
<script src="{{ $highlight.Permalink }}"></script>
|
<script src="{{ $highlight.Permalink }}" integrity="{{ $highlight.Data.Integrity }}"></script>
|
||||||
<script>
|
<script>
|
||||||
hljs.initHighlightingOnLoad();
|
hljs.initHighlightingOnLoad();
|
||||||
</script>
|
</script>
|
||||||
|
@ -14,8 +14,8 @@
|
|||||||
<!-- Styles -->
|
<!-- Styles -->
|
||||||
{{ $anoldhope := resources.Get "an-old-hope.min.css" | minify }}
|
{{ $anoldhope := resources.Get "an-old-hope.min.css" | minify }}
|
||||||
{{ $style := resources.Get "style.css" | minify }}
|
{{ $style := resources.Get "style.css" | minify }}
|
||||||
{{ $stylesheet := slice $anoldhope $style | resources.Concat "stylesheet.css" | minify }}
|
{{ $stylesheet := slice $anoldhope $style | resources.Concat "stylesheet.css" | minify | fingerprint }}
|
||||||
<link href="{{ $stylesheet.Permalink }}" rel="stylesheet">
|
<link href="{{ $stylesheet.Permalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="stylesheet">
|
||||||
<link href="{{ "custom.css" | absURL }}" rel="stylesheet">
|
<link href="{{ "custom.css" | absURL }}" rel="stylesheet">
|
||||||
<!-- Favicons -->
|
<!-- Favicons -->
|
||||||
<link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}">
|
<link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}">
|
||||||
|
Loading…
Reference in New Issue
Block a user