Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xianmin/hugo-theme-jane.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYong-Siang Shih <shaform@gmail.com>2018-12-16 09:25:07 +0300
committerChen Xianmin <xianmin12@gmail.com>2018-12-16 09:25:07 +0300
commit36e9b7640946190246fe9a11b3dfc34aea5fa6f6 (patch)
tree78df452a00da5578cbfa5a6df7802d46f2245de6 /layouts
parent0123e4c2f665681831bd7c26f2f9ebe0439035ae (diff)
feat: add crossorigin="anonymous" (#157)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head.html2
-rw-r--r--layouts/partials/scripts.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index a0041f5..bbc3fa1 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -77,7 +77,7 @@
<!-- Jane theme main style -->
{{ $style := resources.Get "sass/jane.scss" | toCSS | minify | fingerprint }}
-<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" media="screen">
+<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" media="screen" crossorigin="anonymous">
<!-- End -->
<!-- custom css -->
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index 8cedc65..733055a 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -13,7 +13,7 @@
<!-- Jane theme main js -->
{{ $jsTemplate := resources.Get "js/main.js" }}
{{ $secureJS := $jsTemplate | resources.ExecuteAsTemplate "js/main.js" . | fingerprint }}
-<script type="text/javascript" src="{{ $secureJS.RelPermalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
+<script type="text/javascript" src="{{ $secureJS.RelPermalink }}" integrity="{{ $secureJS.Data.Integrity }}" crossorigin="anonymous"></script>
<!-- End -->
{{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }}