From f9338dd633ab4cb042253b0947e7a3922a91c1e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20M=C3=B8ller=20Andersen?= Date: Sat, 14 Jan 2017 13:24:22 +0100 Subject: Run custom JS before starting highlight.js highlight.js is configurable, and guaranteeing that your code runs before hljs gets started is nice I think. Although the highlighting is likely to run after the custom JavaScript anyway, because `initHighlightingOnLoad` runs asynchronously, so I don't know if it will ever be a real problem. --- layouts/partials/footer_js.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/partials/footer_js.html b/layouts/partials/footer_js.html index 3b9cdba..e3abb52 100644 --- a/layouts/partials/footer_js.html +++ b/layouts/partials/footer_js.html @@ -2,10 +2,11 @@ - + {{ range .Site.Params.custom_js }} {{ end }} + {{ if .Site.Params.mathjax }}