From 581351b0a24c5de2461b82804b599fe4b07a6777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Sun, 15 Mar 2015 14:17:37 +0100 Subject: [PATCH] Don't hardcode location of static theme files, rather use THEME_STATIC_DIR. Fixes issues with the i18n_subsites plugins. --- templates/article.html | 2 +- templates/base.html | 26 +++++++++++++------------- templates/includes/github-js.html | 6 +++--- templates/search.html | 6 +++--- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/templates/article.html b/templates/article.html index 087e432..d76d04b 100644 --- a/templates/article.html +++ b/templates/article.html @@ -106,6 +106,6 @@

{% endif %} {% if SHARIFF|default(false) %} - + {% endif %} {% endblock %} diff --git a/templates/base.html b/templates/base.html index 112c249..e5e51b1 100644 --- a/templates/base.html +++ b/templates/base.html @@ -58,28 +58,28 @@ {% if BOOTSTRAP_THEME %} - + {% else %} - + {% endif %} - + - + {% if 'tipue_search' in PLUGINS %} - + {% endif %} {% if DOCUTIL_CSS %} - + {% endif %} {% if TYPOGRIFY %} - + {% endif %} - + {% if CUSTOM_CSS %} {% endif %} {% if SHARIFF %} - + {% endif %} {% if FEED_ALL_ATOM %} @@ -178,16 +178,16 @@ {% include 'includes/footer.html' %} - + - + - + {% if BANNER %} - + {% endif %} {% include 'includes/github-js.html' %} {% include 'includes/disqus_script.html' %} diff --git a/templates/includes/github-js.html b/templates/includes/github-js.html index 85d9ae5..42c54de 100644 --- a/templates/includes/github-js.html +++ b/templates/includes/github-js.html @@ -17,7 +17,7 @@ if (!window.jXHR) { var jxhr = document.createElement('script'); jxhr.type = 'text/javascript'; - jxhr.src = '{{ SITEURL }}/theme/js/jXHR.js'; + jxhr.src = '{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/jXHR.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(jxhr, s); } @@ -30,6 +30,6 @@ }); }); - + -{% endif %} \ No newline at end of file +{% endif %} diff --git a/templates/search.html b/templates/search.html index a194256..a04b52f 100644 --- a/templates/search.html +++ b/templates/search.html @@ -8,9 +8,9 @@ {% if 'assets' in PLUGINS %} {% include '_includes/minify_tipuesearch.html' with context %} {% else %} - - - + + + {% endif %}