diff options
author | Linh T. Tô <31973230+linhtto@users.noreply.github.com> | 2020-08-08 17:52:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-08 17:52:35 +0300 |
commit | b7ecf0c08c110f11cc215b7154fb1349263ca106 (patch) | |
tree | 98be7af4bbdcae98e2b898c1282e714439ed6a70 /layouts | |
parent | ecb89b781b1691172ac13ec142eefa209fbafa00 (diff) |
Allow for Custom JavaScript files (#233)
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/footer/scripts.html | 6 |
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 }} |