diff --git a/dask_sphinx_theme/layout.html b/dask_sphinx_theme/layout.html index d925fd7..1115257 100644 --- a/dask_sphinx_theme/layout.html +++ b/dask_sphinx_theme/layout.html @@ -1,72 +1,305 @@ -{% extends "sphinx_rtd_theme/layout.html" %} +{# TEMPLATE VAR SETTINGS #} +{%- set url_root = pathto('', 1) %} +{%- if url_root == '#' %}{% set url_root = '' %}{% endif %} +{%- if not embedded and docstitle %} + {%- set titlesuffix = " — "|safe + docstitle|e %} +{%- else %} + {%- set titlesuffix = "" %} +{%- endif %} +{%- set lang_attr = 'en' if language == None else (language | replace('_', '-')) %} {% set css_files = css_files + ["_static/css/explore.css"] %} {% set css_files = css_files + ["_static/css/nbsphinx.css"] %} {% set script_files = script_files + ["_static/js/custom.js"] %} -{% block extrahead %} - -{% endblock %} - -{% block extrabody %} - - - -{% endblock %} + + +
+ + {{ metatags }} + + {% block htmltitle %} +