mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +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