{{ $bootstrapJs := resources.Get "/js/bootstrap.min.js" }}
<script src="{{ $bootstrapJs.Permalink | relURL }}"></script>

{{- if .IsHome }}
<script src="/assets/js/list.min.js"></script>
<script>
  new List('icons-body', {
    valueNames: ['name', { data: ['tags', 'categories'] }]
  });
</script>
{{- end }}

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

{{- if eq hugo.Environment "production" -}}
  {{- $docsJs = $docsJs | resources.Minify -}}
{{- end }}
<script async src="{{ $docsJs.Permalink | relURL }}"></script>
