{% import "partials/language.html" as lang with context %}
<nav class="md-nav md-nav--secondary">
  {% set toc_ = page.toc %}
  {% if toc_ | first is defined and "\x3ch1 id=" in page.content %}
    {% set toc_ = (toc_ | first).children %}
  {% endif %}
  {% set max_toc_depth = config.theme.max_toc_depth %}
  {% if max_toc_depth is lessthan 1 %}
    {% set max_toc_depth = 100 %}
  {% endif %}
  {% if toc_ | first is defined %}
    <label class="md-nav__title" for="__toc">{{ lang.t("toc.title") }}</label>
   