mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
Merge pull request #2254 from servedsmart/add-missing-resources-fingerprint
🎨 Structure: Restructure vendor.html and add missing hugo fingerprints
This commit is contained in:
@@ -62,7 +62,12 @@
|
|||||||
{{/* Packery */}}
|
{{/* Packery */}}
|
||||||
{{ if .Page.HasShortcode "gallery" }}
|
{{ if .Page.HasShortcode "gallery" }}
|
||||||
{{ $packeryLib := resources.Get "lib/packery/packery.pkgd.min.js" }}
|
{{ $packeryLib := resources.Get "lib/packery/packery.pkgd.min.js" }}
|
||||||
<script defer src="{{ $packeryLib.RelPermalink }}" integrity="{{ $packeryLib.Data.Integrity }}"></script>
|
{{ $packeryLib = $packeryLib | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }}
|
||||||
|
<script
|
||||||
|
defer
|
||||||
|
type="text/javascript"
|
||||||
|
src="{{ $packeryLib.RelPermalink }}"
|
||||||
|
integrity="{{ $packeryLib.Data.Integrity }}"></script>
|
||||||
|
|
||||||
{{ $jsShortcodeGallery := resources.Get "js/shortcodes/gallery.js" }}
|
{{ $jsShortcodeGallery := resources.Get "js/shortcodes/gallery.js" }}
|
||||||
{{ $jsShortcodeGallery = $jsShortcodeGallery | resources.Minify | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }}
|
{{ $jsShortcodeGallery = $jsShortcodeGallery | resources.Minify | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }}
|
||||||
@@ -75,19 +80,27 @@
|
|||||||
{{/* tw-elements */}}
|
{{/* tw-elements */}}
|
||||||
{{ if or (.Page.HasShortcode "carousel") (.Page.HasShortcode "timeline") }}
|
{{ if or (.Page.HasShortcode "carousel") (.Page.HasShortcode "timeline") }}
|
||||||
{{ $twelementsLib := resources.Get "lib/tw-elements/index.min.js" }}
|
{{ $twelementsLib := resources.Get "lib/tw-elements/index.min.js" }}
|
||||||
|
{{ $twelementsLib = $twelementsLib | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }}
|
||||||
<script
|
<script
|
||||||
defer
|
defer
|
||||||
|
type="text/javascript"
|
||||||
src="{{ $twelementsLib.RelPermalink }}"
|
src="{{ $twelementsLib.RelPermalink }}"
|
||||||
integrity="{{ $twelementsLib.Data.Integrity }}"></script>
|
integrity="{{ $twelementsLib.Data.Integrity }}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{/* youtubeLite */}}
|
{{/* youtubeLite */}}
|
||||||
{{ if .Page.HasShortcode "youtubeLite" }}
|
{{ if .Page.HasShortcode "youtubeLite" }}
|
||||||
{{ $youtubeLiteJS := resources.Get "lib/lite-youtube-embed/lite-yt-embed.js" | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }}
|
|
||||||
{{ $youtubeLiteCSS := resources.Get "lib/lite-youtube-embed/lite-yt-embed.css" }}
|
{{ $youtubeLiteCSS := resources.Get "lib/lite-youtube-embed/lite-yt-embed.css" }}
|
||||||
|
{{ $youtubeLiteCSS = $youtubeLiteCSS | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }}
|
||||||
<link
|
<link
|
||||||
|
type="text/css"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="{{ $youtubeLiteCSS.RelPermalink }}"
|
href="{{ $youtubeLiteCSS.RelPermalink }}"
|
||||||
integrity="{{ $youtubeLiteCSS.Data.Integrity }}">
|
integrity="{{ $youtubeLiteCSS.Data.Integrity }}">
|
||||||
<script src="{{ $youtubeLiteJS.RelPermalink }}" integrity="{{ $youtubeLiteJS.Data.Integrity }}"></script>
|
{{ $youtubeLiteLib := resources.Get "lib/lite-youtube-embed/lite-yt-embed.js" }}
|
||||||
|
{{ $youtubeLiteLib = $youtubeLiteLib | resources.Fingerprint (.Site.Params.fingerprintAlgorithm | default "sha512") }}
|
||||||
|
<script
|
||||||
|
type="text/javascript"
|
||||||
|
src="{{ $youtubeLiteLib.RelPermalink }}"
|
||||||
|
integrity="{{ $youtubeLiteLib.Data.Integrity }}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user