From: XhmikosR Date: Fri, 19 Jul 2019 15:49:52 +0000 (+0300) Subject: Simplify code. X-Git-Tag: v5.0.0-alpha1~968 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ba4cc2e795b7c7219aa92568bafb0419fba4711;p=thirdparty%2Fbootstrap.git Simplify code. --- 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 }}