{{ if eq hugo.Environment "production" -}}
  <script src="/dist/js/coreui.bundle.min.js" {{ printf "integrity=%q" .Site.Params.cdn.js_bundle_hash | safeHTMLAttr }} crossorigin="anonymous"></script>
{{ else -}}
  <script src="/dist/js/coreui.bundle.js"></script>
{{- end }}

{{- $vendor := resources.Match "js/vendor/*.js" -}}
{{- $js := resources.Match "js/*.js" -}}
{{- $targetDocsJSPath := printf "/assets/js/docs.js" -}}
{{- $docsJs := append $js $vendor | resources.Concat $targetDocsJSPath -}}

{{- if eq hugo.Environment "production" -}}
  {{- $docsJs = $docsJs | resources.Minify -}}
{{- end }}

<script src="{{ $docsJs.Permalink | relURL }}"></script>


<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA6CPcDAI6f5rn2e0gCUq7XIIEKpjqnGdE&libraries=places"></script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
