diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/docs/html-head.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 9946c37..3cf5054 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -4,11 +4,11 @@ <!-- Theme stylesheet, you can customize scss by creating `assets/custom.scss` in your website --> {{- $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }} -<link rel="stylesheet" href="{{ $styles.RelPermalink }}"> +<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}"> {{ if default true .Site.Params.BookSearch }} {{- $searchJS := resources.Get "search.js" | resources.ExecuteAsTemplate "search.js" . | resources.Minify | resources.Fingerprint }} -<script defer src="{{ $searchJS.RelPermalink }}"></script> +<script defer src="{{ $searchJS.RelPermalink }}" integrity="{{ $searchJS.Data.Integrity }}"></script> {{ end }} <!-- Favicon --> |