mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
11 lines
539 B
HTML
11 lines
539 B
HTML
{{ if eq hugo.Environment "production" -}}
|
|
<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>
|
|
{{ else -}}
|
|
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script>
|
|
{{- end }}
|
|
|
|
{{- $variant := cond (eq .Page.Layout "docs") "docs" "default" -}}
|
|
{{- range partialCached "func/get-js-assets" . $variant -}}
|
|
<script src="{{ .RelPermalink }}"></script>
|
|
{{- end -}}
|