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

github.com/jpescador/hugo-future-imperfect.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Collins <thepatrickcollins@gmail.com>2017-10-31 16:38:45 +0300
committerGitHub <noreply@github.com>2017-10-31 16:38:45 +0300
commit06c46614f67c90ab8ac5566e2e7ba04c370aa300 (patch)
treea78e4b3e21a86ad9e28fb56eb97fbbc389604637
parent61b7f6f379cfd60b5b41acf3216472e3167fb45c (diff)
Fix customJS not loading (#78)
* Fix customJS not loading * Adjust partial to style guide
-rw-r--r--layouts/partials/footer.html56
1 files changed, 28 insertions, 28 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 41f81c6..acd082d 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,34 +1,34 @@
-</div>
-<a id="back-to-top" href="#" class="fa fa-arrow-up fa-border fa-2x"></a>
-<!-- Scripts -->
+ </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 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" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></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.25/jquery.fancybox.min.js"></script>
- <script src="{{ "js/util.js" | absURL }}"></script>
- <script src="{{ "js/main.js" | absURL }}"></script>
- <script src="{{ "js/backToTop.js" | absURL }}"></script>
-{{ 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" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></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.25/jquery.fancybox.min.js"></script>
+ <script src="{{ "js/util.js" | absURL }}"></script>
+ <script src="{{ "js/main.js" | absURL }}"></script>
+ <script src="{{ "js/backToTop.js" | absURL }}"></script>
+ {{ end }}
-{{ if ne ($.Scratch.Get "jsFiles") false }}
-{{ range $.Scratch.Get "jsFiles" }}
- {{ if ne . "default" }}
- <script src="{{ "{{ . }}" | absURL }}"></script>
+ {{ if ne ($.Scratch.Get "jsFiles") false }}
+ {{ range $.Scratch.Get "jsFiles" }}
+ {{ if ne . "default" }}
+ <script src="{{ . | absURL }}"></script>
+ {{ end }}
{{ end }}
- {{ end }}
-{{ end }}
+ {{ end }}
-<!-- This is called by default since this theme uses highlight.js -->
-<script>hljs.initHighlightingOnLoad();</script>
-</body>
+ <!-- This is called by default since this theme uses highlight.js -->
+ <script>hljs.initHighlightingOnLoad();</script>
+ </body>
</html>