{{ if eq hugo.Environment "production" -}} {{ else -}} {{- end }} {{- $variant := cond (eq .Page.Layout "docs") "docs" "default" -}} {{- range partialCached "func/get-js-assets" . $variant -}} {{- end -}}