From 4ba4cc2e795b7c7219aa92568bafb0419fba4711 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 19 Jul 2019 18:49:52 +0300 Subject: [PATCH] Simplify code. --- site/layouts/_default/examples.html | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) 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 }}