aboutsummaryrefslogtreecommitdiff
path: root/site/layouts/_default/examples.html
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-02-22 08:54:43 +0200
committerGitHub <[email protected]>2020-02-22 08:54:43 +0200
commitb8ffcdf9a4b8d61ef896c102732e15af39e883b5 (patch)
tree913d0533f910408580e70dbacbfa6009521906ca /site/layouts/_default/examples.html
parent9d50c6a18fcfd2e42ccc4e7b29d887c574bfadea (diff)
downloadbootstrap-b8ffcdf9a4b8d61ef896c102732e15af39e883b5.tar.xz
bootstrap-b8ffcdf9a4b8d61ef896c102732e15af39e883b5.zip
Use `hugo.Environment` instead of `getenv` (#29240)
This is set automatically to "development" when the local server is running, and to "production" when Hugo builds the site.
Diffstat (limited to 'site/layouts/_default/examples.html')
-rw-r--r--site/layouts/_default/examples.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html
index 5e2e58ea8..6142e29ad 100644
--- a/site/layouts/_default/examples.html
+++ b/site/layouts/_default/examples.html
@@ -43,7 +43,7 @@
{{ .Content }}
{{ if ne .Page.Params.include_js false -}}
- {{- if eq (getenv "HUGO_ENV") "production" -}}
+ {{- if eq hugo.Environment "production" -}}
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.min.js" integrity="{{ .Site.Params.cdn.js_bundle_hash }}" crossorigin="anonymous"></script>
{{- else -}}
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script>