diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 5931ebb..465cd5d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -25,6 +25,7 @@ Email = "you@example.space" FaviconFile = "img/leaf.ico" GATracker = "XYZ" GitHub = "//github.com/you" +HighlightJS = true Initials = "ad" # Displayed on single post page; DEPRECATED in v0.3.0. Lang = "en" LinkedIn = "//linkedin.com/in/you" diff --git a/layouts/partials/footer_scripts.html b/layouts/partials/footer_scripts.html index 2864a41..a2140c0 100644 --- a/layouts/partials/footer_scripts.html +++ b/layouts/partials/footer_scripts.html @@ -11,3 +11,11 @@ try { } catch(err) {} {{ end }} + +{{ if .Site.Params.HighlightJS }} + + + +{{ end }} diff --git a/layouts/partials/head_includes.html b/layouts/partials/head_includes.html index b53e4cb..5200989 100644 --- a/layouts/partials/head_includes.html +++ b/layouts/partials/head_includes.html @@ -10,6 +10,11 @@ +{{ if .Site.Params.HighlightJS }} + +{{ end }} + + {{ if eq true .Site.Params.CacheBuster }}