Welcome to mirror list, hosted at ThFree Co, Russian Federation.

scripts.html « partials « layouts « docs - github.com/twbs/icons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2edf5b1514be124ac117b0d0db7cef9798b2eae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{{ $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>