diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-10-02 17:11:38 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-10-02 17:11:38 +0300 |
commit | 7dac3fa7fe2ac74593a189fbef15b66bd29d74fa (patch) | |
tree | 6345c603025406257635e2ef420cb2b0d94822f5 /_includes/common/footer.html | |
parent | header: minor HTML fix (diff) | |
download | jekyll-theme-7dac3fa7fe2ac74593a189fbef15b66bd29d74fa.tar.gz jekyll-theme-7dac3fa7fe2ac74593a189fbef15b66bd29d74fa.zip |
footer: add support for custom_js
Diffstat (limited to '')
-rw-r--r-- | _includes/common/footer.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/_includes/common/footer.html b/_includes/common/footer.html index 01fa784..0e2aecf 100644 --- a/_includes/common/footer.html +++ b/_includes/common/footer.html @@ -21,5 +21,10 @@ </div> <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script> <script src="{{ '/assets/bootstrap/js/bootstrap.min.js' | relative_url }}"></script> + {% if page.custom_js %} + {% for js in page.custom_js %} + <script src="{{ '/assets/js/' | relative_url }}{{ js }}"></script> + {% endfor %} + {% endif %} </body> </html> |