Skip to content

Commit

Permalink
Change condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Jul 19, 2019
1 parent 7ae66f4 commit 0a061d4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions site/layouts/partials/scripts.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{ if and (eq (getenv "HUGO_ENV") "production") (ne .Page.Params.include_js false) -}}
<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>
{{ if (ne .Page.Params.include_js false) -}}
{{ if (eq (getenv "HUGO_ENV") "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>
{{- end -}}
{{- end }}

{{ if (or (eq .Page.Layout "docs") (eq .Page.Layout "single")) -}}
Expand Down

0 comments on commit 0a061d4

Please sign in to comment.