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

js.html « partials « layouts - github.com/spech66/bootstrap-bp-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5edcf024c85cd8c73ede6bb739cdfc0ada71c10d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{{ $jquery := resources.Get "/js/jquery-3.4.1.slim.min.js" }}
{{ $bootstrap := resources.Get "/js/bootstrap.min.js" }}
{{ $customjs := resources.Get "/js/custom.js" }}
{{ $allscript := slice $jquery $bootstrap $customjs | resources.Concat "/js/vendor.js" | minify | fingerprint "sha512" }}
<script src="{{ $allscript.RelPermalink }}" integrity="{{ $allscript.Data.Integrity }}"></script>

{{- range .Site.Params.jscdn }}
    <script src="{{ . }}"></script>
{{- end }}

{{- range .Params.jscdn }}
    <script src="{{ . }}"></script>
{{- end }}

{{- range .Site.Params.js }}
    {{ $pagescript := resources.Get . | minify | fingerprint "sha512" }}
    <script src="{{ $pagescript.RelPermalink }}" integrity="{{ $pagescript.Data.Integrity }}"></script>
{{- end }}

{{- range .Params.js }}
    {{ $pagescript := resources.Get . | minify | fingerprint "sha512" }}
    <script src="{{ $pagescript.RelPermalink }}" integrity="{{ $pagescript.Data.Integrity }}"></script>
{{- end }}

{{ template "_internal/google_analytics_async.html" . }}