diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html index 6142e29ad5..3fe1ac9bdd 100644 --- a/site/layouts/_default/examples.html +++ b/site/layouts/_default/examples.html @@ -44,13 +44,13 @@ {{ if ne .Page.Params.include_js false -}} {{- if eq hugo.Environment "production" -}} - + {{- else -}} {{- end }} {{ range .Page.Params.extra_js -}} - + {{- end -}} {{- end }} diff --git a/site/layouts/partials/home/masthead-followup.html b/site/layouts/partials/home/masthead-followup.html index fcd24a6117..bf2a51cf07 100644 --- a/site/layouts/partials/home/masthead-followup.html +++ b/site/layouts/partials/home/masthead-followup.html @@ -26,11 +26,11 @@ Explore the docs
CSS only
- {{ highlight (printf (``) .Site.Params.cdn.css .Site.Params.cdn.css_hash) "html" "" }} + {{ highlight (printf (``) .Site.Params.cdn.css (.Site.Params.cdn.css_hash | safeHTMLAttr)) "html" "" }}
JS and Popper.js
- {{ highlight (printf (` - -`) .Site.Params.cdn.popper .Site.Params.cdn.popper_hash .Site.Params.cdn.js .Site.Params.cdn.js_hash) "html" "" }} + {{ highlight (printf (` + +`) .Site.Params.cdn.popper (.Site.Params.cdn.popper_hash | safeHTMLAttr) .Site.Params.cdn.js (.Site.Params.cdn.js_hash | safeHTMLAttr)) "html" "" }}
diff --git a/site/layouts/partials/scripts.html b/site/layouts/partials/scripts.html index afe7bd8121..d7c6946417 100644 --- a/site/layouts/partials/scripts.html +++ b/site/layouts/partials/scripts.html @@ -1,5 +1,5 @@ {{ if eq hugo.Environment "production" -}} - + {{ else -}} {{- end }} diff --git a/site/layouts/partials/stylesheet.html b/site/layouts/partials/stylesheet.html index f61c07f762..479c5e408c 100644 --- a/site/layouts/partials/stylesheet.html +++ b/site/layouts/partials/stylesheet.html @@ -1,6 +1,6 @@ {{- "" | safeHTML }} {{ if eq hugo.Environment "production" -}} - + {{- else -}} {{- end }}