2020-02-22 07:54:43 +01:00
|
|
|
{{ if eq hugo.Environment "production" -}}
|
2020-04-28 21:17:43 +02:00
|
|
|
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.min.js" {{ printf "integrity=%q" .Site.Params.cdn.js_bundle_hash | safeHTMLAttr }} crossorigin="anonymous"></script>
|
2019-01-08 17:33:28 +01:00
|
|
|
{{ else -}}
|
|
|
|
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script>
|
|
|
|
{{- end }}
|
|
|
|
|
2020-07-03 17:33:57 +02:00
|
|
|
{{- $variant := cond (eq .Page.Layout "docs") "docs" "default" -}}
|
|
|
|
{{- range partialCached "func/get-js-assets" . $variant -}}
|
|
|
|
<script src="{{ .RelPermalink }}"></script>
|
|
|
|
{{- end -}}
|