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:
authorLinh T. Tô <31973230+linhtto@users.noreply.github.com>2020-08-08 17:52:35 +0300
committerGitHub <noreply@github.com>2020-08-08 17:52:35 +0300
commitb7ecf0c08c110f11cc215b7154fb1349263ca106 (patch)
tree98be7af4bbdcae98e2b898c1282e714439ed6a70 /layouts
parentecb89b781b1691172ac13ec142eefa209fbafa00 (diff)
Allow for Custom JavaScript files (#233)
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 }}