From db1ec959aab9b610967ac1d48aa798cc7c922e59 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 17 Sep 2020 14:57:20 +0530 Subject: [PATCH] fix: for ebb9eb4043b3a5f1ced0f41a923bb4c5a468ca27 * Browser errors were logged to the console --- layouts/partials/footer.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index eeffa3e2..8589cabc 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -22,7 +22,9 @@ document.getElementById('menu').scrollLeft = localStorage.getItem("menu-scroll-position"); } } + {{if in site.Params.mainSections .Type }} hljs.initHighlightingOnLoad(); + {{end }} document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener("click", function (e) { e.preventDefault();