{%- block site_meta %} {% if page and page.is_homepage %}{% endif %} {% if config.site_author %}{% endif %} {% if page and page.canonical_url %}{% endif %} {% if config.theme.favicon %} {%- else %}{% endif %} {%- if i18n_config %} {%- for lang, display in config.plugins.i18n.config.languages.items() %} {%- if lang != i18n_page_locale %} {%- if lang == i18n_config.default_language %} {%- elif i18n_page_file_locale is none %} {%- else %} {%- endif %} {%- endif %} {%- endfor %} {%- endif %} {%- if config.theme.manifest %} {%- if i18n_config and i18n_page_file_locale %} {%- else %} {%- endif %} {%- endif %} {%- endblock %} {%- block htmltitle %} {% if page.title %}{{ page.title }} - {% endif %}{{ config.site_name }} {%- endblock %} {%- block styles %} {%- if page_theme %} {%- else %} {%- endif %} {%- for path in extra_css %} {%- endfor %} {%- endblock %} {%- block libs %} {%- endblock %} {%- block extrahead %} {% endblock %} {%- if config.theme.extlink %} {%- endif %} {%- if 'i18n' in config.plugins %} {%- endif %} {%- if 'search' in config.plugins %} {%- endif %} {%- if 'encryptcontent' in config.plugins %} {%- endif %}

{%- if config.theme.logo %} {%- else %} {%- endif %} {% if page.title %}{{ page.title }}{% endif %} {%- if 'search' in config.plugins %} {%- endif %} {%- block top_buttons %} {%- endblock %}

{%- if config.theme.logo %} {%- else %} {%- endif %} {% if page.title %}{{ page.title }}{% endif %}

{%- block site_nav %} {%- if nav|length>1 %}
{%- endif %} {%- endblock %} {%- set toc_check = namespace(anchors=0) %} {%- for toc_item in page.toc %} {%- set toc_check.anchors = toc_check.anchors + 1 %} {%- for toc_item in toc_item.children %} {% set toc_check.anchors = toc_check.anchors + 1 %} {%- endfor %} {%- endfor %} {%- if toc_check.anchors > 1 %} {%- endif %}
{%- if toc_check.anchors > 1 %}
{%- for toc_item in page.toc %} {{ toc_item.title }} {%- for toc_item in toc_item.children %} {{ toc_item.title }} {%- for toc_item in toc_item.children %} {{ toc_item.title }} {%- endfor %} {%- endfor %} {%- endfor %}
{%- endif %} {%- if i18n_config %}
{%- for lang, display in config.plugins.i18n.config.languages.items() %} {%- if lang == i18n_page_locale %} {%- set langcolor = "w3-theme-l2" %} {%- else %} {%- set langcolor = "w3-theme-l4" %} {%- endif %} {%- if lang == i18n_config.default_language %} {{ display.name }} {%- elif i18n_page_file_locale is none %} {{ display.name }} {%- else %} {{ display.name }} {%- endif %} {%- endfor %}
{%- endif %}
{%- block content %} {{ page.content }} {%- endblock %} {%- if 'search' in config.plugins %}
 
{%- endif %}
{%- block footer %} {%- endblock %}
{%- block scripts %} {%- for path in extra_javascript %} {%- endfor %} {%- if config.theme.serviceworker %} {%- endif %} {%- endblock %} {%- block exec_script %} {%- endblock %} {% if page and page.is_homepage %} {% endif %}