diff --git a/source/_themes/clearlinux/layout.html b/source/_themes/clearlinux/layout.html index 49d0469b..55b7b319 100644 --- a/source/_themes/clearlinux/layout.html +++ b/source/_themes/clearlinux/layout.html @@ -1,8 +1,7 @@ {# TEMPLATE VAR SETTINGS #} -{%- set css_files = css_files + ['../_themes/clearlinux/static/css/main.css'] %} -{%- set css_files = css_files + ['../_themes/clearlinux/static/css/vendor/font-awesome.min.css'] %} -{%- set script_files = script_files + ['../_themes/clearlinux/static/js/project.js'] %} -{%- set script_files = script_files + ['../_themes/clearlinux/static/js/modernizr.custom.19994.js'] %} +{% set script_files = script_files + ['_static/js/affix.js'] %} +{% set script_files = script_files + ['_static/js/project.js'] %} +{% set script_files = script_files + ['_static/js/main.js'] %} {%- set url_root = pathto('', 1) %} {%- if url_root == '#' %}{% set url_root = '' %}{% endif %} @@ -72,7 +71,12 @@ {%- endif %} {%- endblock %} - {%- block extrahead %} {% endblock %} + {%- block extrahead %} + {% if theme_touch_icon %} + + {% endif %} + + {% endblock %} {# Keep modernizr in head - http://modernizr.com/docs/#installing #} @@ -94,7 +98,10 @@
-
{% include "navigation.html" %}
+
+
{% include "navigation.html" %}
+
{% include "searchbox.html" %}
+
{% block body %}{% endblock %}
@@ -106,20 +113,49 @@
{% include "footer.html" %} - {% if not embedded %} + {% 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 %} + + {# STICKY NAVIGATION #} + {% if theme_sticky_navigation %} - {%- for scriptfile in script_files %} - - {%- endfor %} - {% endif %} + {% endif %} + + + {# this is used when loading the search index using $.ajax fails, + such as on Chrome for documents on localhost #} + + + {# Disable base theme's top+bottom related navs; we have our own in sidebar #} + {%- block relbar1 %}{% endblock %} + {%- block relbar2 %}{% endblock %} + + {%- block footer %} {% endblock %} diff --git a/source/_themes/clearlinux/navigation.html b/source/_themes/clearlinux/navigation.html index 75562484..52614618 100644 --- a/source/_themes/clearlinux/navigation.html +++ b/source/_themes/clearlinux/navigation.html @@ -1,10 +1,12 @@ - +

Content Map

+ {% set toctree = toctree(maxdepth=2, collapse=theme_collapse_navigation, includehidden=True) %} + {% set toctree = toctree|replace("