From 14768f7c13aea6dae5587d879d725e1335c741e0 Mon Sep 17 00:00:00 2001 From: Djordje Atlialp Date: Fri, 22 Feb 2019 15:22:10 +0100 Subject: [PATCH] Use js generation from hugo instead of webpack --- layouts/partials/footer.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 8290d78..3678d09 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -23,7 +23,15 @@ - + + +{{ $main := resources.Get "js/main.js" }} +{{ $menu := resources.Get "js/menu.js" }} +{{ $prism := resources.Get "js/prism.js" }} +{{ $theme := resources.Get "js/theme.js" }} +{{ $js := slice $main $menu $prism $theme | resources.Concat "js/bundle.js" }} +{{ $secureJS := $js | resources.Fingerprint "sha512" }} + {{- if .Site.GoogleAnalytics }}