diff options
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r-- | layouts/partials/footer.html | 10 |
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 }} |