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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/footer/scripts.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/footer/scripts.html b/layouts/partials/footer/scripts.html
index 6142f3d..7454f32 100644
--- a/layouts/partials/footer/scripts.html
+++ b/layouts/partials/footer/scripts.html
@@ -4,3 +4,9 @@
<script src="{{ $scripts.Permalink }}" integrity="{{ $scripts.Data.Integrity }}"></script>
{{ template "_internal/google_analytics_async.html" . }}
+
+<!-- Custom JavaScript -->
+{{ range .Site.Params.customJS -}}
+ {{ $script := resources.Get . | minify }}
+ <script src="{{ $script.Permalink }}" integrity="{{ $script.Data.Integrity }}"></script>
+{{- end }}