aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap-icons/docs/layouts/partials/scripts.html
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/twbs/bootstrap-icons/docs/layouts/partials/scripts.html')
-rw-r--r--vendor/twbs/bootstrap-icons/docs/layouts/partials/scripts.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/twbs/bootstrap-icons/docs/layouts/partials/scripts.html b/vendor/twbs/bootstrap-icons/docs/layouts/partials/scripts.html
new file mode 100644
index 000000000..e8b01a080
--- /dev/null
+++ b/vendor/twbs/bootstrap-icons/docs/layouts/partials/scripts.html
@@ -0,0 +1,15 @@
+<script async src="/assets/js/vendor/bootstrap.bundle.min.js"></script>
+
+{{- $esbuildOptions := dict "target" "es2019" -}}
+
+{{- if eq hugo.Environment "production" -}}
+ {{- $esbuildOptions = merge $esbuildOptions (dict "minify" "true") -}}
+{{- end -}}
+
+{{- if or .IsHome (eq .Page.Layout "sprite") -}}
+ {{- $searchJs := resources.Get "js/search.js" | js.Build $esbuildOptions | resources.Copy "/assets/js/search.js" -}}
+ <script async src="{{ $searchJs.Permalink | relURL }}"></script>
+{{- end }}
+
+{{- $application := resources.Get "js/application.js" | js.Build $esbuildOptions | resources.Copy "/assets/js/application.js" -}}
+<script async src="{{ $application.Permalink | relURL }}"></script>