{{ if eq hugo.Environment "production" -}} {{ else -}} {{- end }} {{ if eq .Page.Layout "docs" -}} {{- end }} {{- $vendor := resources.Match "js/vendor/*.js" -}} {{- $js := resources.Match "js/*.js" -}} {{- $targetDocsJSPath := path.Join "/docs" .Site.Params.docs_version "assets/js/docs.js" -}} {{- $docsJs := append $js $vendor | resources.Concat $targetDocsJSPath -}} {{- if eq hugo.Environment "production" -}} {{- $docsJs = $docsJs | resources.Minify -}} {{- end }} {{ if eq .Page.Layout "docs" -}} {{- end }}