{%- extends "basic/layout.html" %} {%- import "static/webpack-macros.html" as _webpack with context %} {# Metadata and asset linking #} {# Create the sidebar links HTML here to re-use in a few places #} {# If we have no sidebar links, pop the links component from the sidebar list #} {%- set sidebar_nav_html = generate_toctree_html("sidebar", show_nav_level=theme_show_nav_level|int, maxdepth=theme_navigation_depth|int, collapse=theme_collapse_navigation|tobool, includehidden=True, titles_only=True) -%} {% if sidebar_nav_html | length == 0 %} {% set sidebars = sidebars | reject("in", "sidebar-nav-bs.html") | list %} {% endif %} {# Remove the page-toc from secondary sidebar if there are no links to show #} {% if generate_toc_html() | length == 0 %} {% set theme_page_sidebar_items = theme_page_sidebar_items | reject("in", "page-toc.html") | list %} {% endif %} {# A flag for whether we include a secondary sidebar based on the page metadata #} {% set remove_sidebar_secondary = (meta is defined and meta is not none and 'html_theme.sidebar_secondary.remove' in meta) or not theme_page_sidebar_items %} {%- block css %} {{ _webpack.head_pre_assets() }} {{ _webpack.head_pre_icons() }} {{- css() }} {{ _webpack.head_js_preload() }} {%- endblock %} {%- block extrahead %} {%- endblock %} {% block body_tag %} {# set up with scrollspy to update the toc as we scroll #} {# ref: https://getbootstrap.com/docs/4.0/components/scrollspy/ #}
{%- endblock %} {%- block content %} {# checkbox to toggle primary sidebar #} {# Checkboxes to toggle the secondary sidebar #} {# A search field pop-up that will only show when the search button is clicked #} {%- if theme_announcement -%}