From fd06af55fce55625c569540634d37b1cae0ad0d1 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Tue, 17 Nov 2020 15:44:16 +0530 Subject: [PATCH] footer: simpify loading hljs, defer and beautify --- layouts/partials/footer.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a1f4af0f..779cd697 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -17,9 +17,9 @@ {{- partial "extend_footer.html" . -}} {{ if in site.Params.mainSections .Type }} -{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint -}} - - +{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint }} + {{- end }} {{- if (not .Site.Params.disableThemeToggle) }} {{- else -}} {{/* case where owner disables theme button after deployment, this resets the stored theme */}} {{- end }}