diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html index 827292d6de..ee3a5d42e8 100644 --- a/site/layouts/_default/examples.html +++ b/site/layouts/_default/examples.html @@ -42,18 +42,16 @@ {{ .Content }} - {{ if ne .Page.Params.include_js false }} - {{ if eq (getenv "HUGO_ENV") "production" }} + {{ if ne .Page.Params.include_js false -}} + {{- if eq (getenv "HUGO_ENV") "production" -}} - {{ else }} + {{- else -}} - {{ end }} - - {{ range .Page.Params.extra_js }} - {{ $integrity := .integrity }} - {{ $async := .async }} - {{- end }} - {{ end }} + + {{ range .Page.Params.extra_js -}} + + {{- end -}} + {{- end }}