{% set is_top = (page and page.is_homepage) and not force_plain_page %} {% set base_url = base_url or "." %} {%- block site_meta %} {% if page and page.is_homepage %}{% endif %} {% if config.site_author %}{% endif %} {% if page and page.canonical_url %}{% endif %} {% if config.site_favicon %} {% else %}{% endif %} {%- endblock %} {%- block htmltitle %} {% if page and page.title and not page.is_homepage %}{{ page.title }} - {% endif %}{{ config.site_name }} {%- endblock %} {%- block styles %} {%- for path in extra_css %} {%- endfor %} {%- endblock %} {%- block libs %} {% if is_top %} {% endif %} {%- endblock %} {%- block scripts %} {%- for path in extra_javascript %} {%- endfor %} {%- endblock %} {%- block analytics %} {%- if config.google_analytics %} {%- endif %} {%- endblock %} {%- block extrahead %} {% endblock %} {# # Code for the top frame. It should ideally be separate from the index page (which is likely # possible once theme_config is released with mkdocs 1.0). #} {%- if is_top -%} {% include 'topbar.html' %}
{% include 'nav-pane.html' %}
{%- endif -%} {# Code for the main template for all content pages. #}
{%- if config.extra.article_nav_top != False %} {% include "article-nav.html" %} {%- endif %} {%- block content %} {% if page and page.meta.source %} {% endif %} {{ page.content }} {%- endblock %}
{%- if config.extra.article_nav_bottom != False %} {% include "article-nav.html" %}
{%- endif %}
{%- if is_top %} {%- endif %}