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

github.com/nodejh/hugo-theme-cactus-plus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r--layouts/partials/footer.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 899b551..833c955 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -22,3 +22,13 @@
</div>
{{ end }}
</footer>
+
+{{ range .Site.Params.customJS }}
+ {{ if ( or ( hasPrefix . "http://" ) ( hasPrefix . "https://" ) ) }}
+ <!-- remote js -->
+ <script src="{{ . }}"></script>
+ {{ else }}
+ <!-- local js -->
+ <script src="{{ $.Site.BaseURL }}{{ . }}"></script>
+ {{ end }}
+{{ end }}