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

github.com/themefisher/twenty-twenty-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormp68 <mp68@users.noreply.github.com>2020-07-09 19:43:18 +0300
committerGitHub <noreply@github.com>2020-07-09 19:43:18 +0300
commit2cc51e9eb12fe7ebbb28cd98ccca3742309156a1 (patch)
treed4ab74bd55420c2e843a41d6cb43e0a9599976ae
parentc58108ca474ac31b9dd742e5149c8d10844153b9 (diff)
Make theme GDPR compliant
Host jQuery locally instead of Cloudflare CDN
-rw-r--r--layouts/partials/footer.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 8b8824d..3fa918e 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -59,7 +59,8 @@
</script>
<!-- jquery -->
-<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js" integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ=" crossorigin="anonymous"></script>
+{{ $jquery := resources.Get "js/jquery.min.js" | minify}}
+<script src="{{ $jquery.Permalink }}"></script>
{{ $script := resources.Get "js/script.js" | minify}}
<script src="{{ $script.Permalink }}"></script>
@@ -68,4 +69,4 @@
{{ $search := resources.Get "js/search.js" | minify}}
<script src="{{ $search.Permalink }}"></script>
-<script src="{{`plugins/search.js` | absURL }}"></script> \ No newline at end of file
+<script src="{{`plugins/search.js` | absURL }}"></script>