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

footer.html « partials « layouts - github.com/jpescador/hugo-future-imperfect.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 94d63f1c38076a13fdffe389aaf0b004c4ebfb8a (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
26
27
28
29
30
31
32
33
34
      </div>
      <a id="back-to-top" href="#" class="fa fa-arrow-up fa-border fa-2x"></a>
      <!-- Scripts -->

      {{ if isset .Site.Params "customjs" }}
        {{ $.Scratch.Set "jsFiles" .Site.Params.customJS }}
      {{ else }}
        {{ $.Scratch.Set "jsFiles" false }}
      {{ end }}

      <!-- If the value "default" is passed into the param then we will first
       load the standard js files associated with the theme -->
      {{ if or (in ($.Scratch.Get "jsFiles") "default") (eq ($.Scratch.Get "jsFiles") false) }}
        <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/skel/3.0.1/skel.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.1.20/jquery.fancybox.min.js"></script>
        <script src="/js/util.js"></script>
        <script src="/js/main.js"></script>
        <script src="/js/backToTop.js"></script>
      {{ end }}

      {{ if ne ($.Scratch.Get "jsFiles") false }}
      {{ range $.Scratch.Get "jsFiles" }}
            {{ if ne . "default" }}
                <script src="{{ . }}"></script>
            {{ end }}
        {{ end }}
      {{ end }}

      <!-- This is called by default since this theme uses highlight.js -->
      <script>hljs.initHighlightingOnLoad();</script>
    </body>
</html>