From df939ec4e6fd1d5601f45b804daebaeef6fe7c2f Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Mon, 8 Apr 2019 21:03:52 -0400 Subject: [PATCH] Allow adding JavaScript files after the theme's (#2116) Allow adding JavaScript files after those bundled in the theme Close #2110 --- _includes/scripts.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/_includes/scripts.html b/_includes/scripts.html index f0ecdec..ed308a0 100644 --- a/_includes/scripts.html +++ b/_includes/scripts.html @@ -26,3 +26,14 @@ {% include analytics.html %} {% include /comments-providers/scripts.html %} + +{% if site.after_footer_scripts %} + {% for script in site.after_footer_scripts %} + {% if script contains "://" %} + {% capture script_path %}{{ script }}{% endcapture %} + {% else %} + {% capture script_path %}{{ script | relative_url }}{% endcapture %} + {% endif %} + + {% endfor %} +{% endif %} -- 2.43.0