Renaming block "extrahead" to "inlinejs" and moving to bottom of page.

This commit is contained in:
Eric Hough 2014-01-05 15:22:45 -05:00
parent c9863009c1
commit 6dd2f3efc3
2 changed files with 3 additions and 2 deletions

View File

@ -67,7 +67,6 @@
<link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}"/> <link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}"/>
{%- endif %} {%- endif %}
{%- endblock %} {%- endblock %}
{%- block extrahead %} {% endblock %}
{# Keep modernizr in head - http://modernizr.com/docs/#installing #} {# Keep modernizr in head - http://modernizr.com/docs/#installing #}
<script src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
@ -142,5 +141,7 @@
<script type="text/javascript" src="_static/js/theme.js"></script> <script type="text/javascript" src="_static/js/theme.js"></script>
{% endif %} {% endif %}
{%- block inlinejs %} {% endblock %}
</body> </body>
</html> </html>

View File

@ -10,7 +10,7 @@
{%- extends "layout.html" %} {%- extends "layout.html" %}
{% set title = _('Search') %} {% set title = _('Search') %}
{% set script_files = script_files + ['_static/searchtools.js'] %} {% set script_files = script_files + ['_static/searchtools.js'] %}
{% block extrahead %} {% block inlinejs %}
<script type="text/javascript"> <script type="text/javascript">
jQuery(function() { Search.loadIndex("{{ pathto('searchindex.js', 1) }}"); }); jQuery(function() { Search.loadIndex("{{ pathto('searchindex.js', 1) }}"); });
</script> </script>