From 677706d4ac198193a1e4d723df234e90cc949f2a Mon Sep 17 00:00:00 2001 From: Eric Hough Date: Sun, 5 Jan 2014 15:03:51 -0500 Subject: [PATCH] Moving JS to bottom --- sphinx_rtd_theme/layout.html | 46 +++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/sphinx_rtd_theme/layout.html b/sphinx_rtd_theme/layout.html index 0314a802..c62d0807 100644 --- a/sphinx_rtd_theme/layout.html +++ b/sphinx_rtd_theme/layout.html @@ -25,32 +25,16 @@ {# CSS #} - {# JS #} + {# OPENSEARCH #} {% if not embedded %} - - - {%- for scriptfile in script_files %} - - {%- endfor %} - {% if use_opensearch %} {% endif %} - {% endif %} - {# RTD hosts these file themselves, so just load on non RTD builds #} + {# RTD hosts this file, so just load on non RTD builds #} {% if not READTHEDOCS %} - {% endif %} {% for cssfile in css_files %} @@ -85,6 +69,7 @@ {%- endblock %} {%- block extrahead %} {% endblock %} + {# Keep modernizr in head - http://modernizr.com/docs/#installing #} @@ -134,5 +119,28 @@ {% include "versions.html" %} + + {% if not embedded %} + + + {%- for scriptfile in script_files %} + + {%- endfor %} + + {% endif %} + + {# RTD hosts this file, so just load on non RTD builds #} + {% if not READTHEDOCS %} + + {% endif %} + - + \ No newline at end of file