From b7ecf0c08c110f11cc215b7154fb1349263ca106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linh=20T=2E=20T=C3=B4?= <31973230+linhtto@users.noreply.github.com> Date: Sat, 8 Aug 2020 10:52:35 -0400 Subject: Allow for Custom JavaScript files (#233) --- layouts/partials/footer/scripts.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'layouts') 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 @@ {{ template "_internal/google_analytics_async.html" . }} + + +{{ range .Site.Params.customJS -}} + {{ $script := resources.Get . | minify }} + +{{- end }} -- cgit v1.2.3