{#- vim: set et ts=8 sts=4 sw=4 ai: -#} {# meta preview block [[ #} {%if title%} {% endif %} {%- if pagepath %} {%- else %} {%- endif %} {%- if canonical_url %} {%- endif %} {%- if pagelogo %} {%- if pagelogo_properties and pagelogo_properties.height %} {%- endif %} {%- if pagelogo_properties and pagelogo_properties.width %} {%- endif %} {%- elif config.SITE_LOGO %} {%- else %} {%- endif %} {# meta preview block ]] #} {%- if config.SITE_ICON %} {%- else %} {%- endif %} {% block title %} {%if title%}{{title}} – {%endif%}{%if config.SITE_NAME %}{{config.SITE_NAME}}{%else%}An Otter Wiki{%endif%} {% endblock %} {%- if (library_requirements and library_requirements.requires_datatables) or force_load_libraries %} {% endif %} {{config.HTML_EXTRA_HEAD|safe}} {{load_custom_html('customHead.html')|safe}} {{plugin_html_head_inject()|safe}} {%- block head %} {% endblock -%} {%- if request.cookies.get('halfmoon_preferredMode') == "dark-mode" %} {#- Dark Mode Optimization -#} {% endif -%} {%- block bodytop %} {% endblock -%}
{% block navbarmain %} {% endblock %} {% block sidebaroverlay %} {% endblock %} {% block content_wrapper_outer %}
{# Capture extra_nav content once to avoid re-rendering the block multiple times #} {% set extra_nav_content = self.extra_nav() | trim %}
{% if extra_nav_content | length > 0 %}{# limit content when extra_nav is not empty #}
{% else %}
{% endif %} {% block content_wrapper %}
{% block breadcrumbs %} {% endblock %} {% block content %} {{content|safe}} {% endblock %}
{% endblock content_wrapper %}
{# extra_nav #} {% if extra_nav_content | length > 0 %}{# display only if block not empty #}
{{ extra_nav_content }} {# Nasty little hack to blow up the width of the extra-nav to a maximum - of you find a solution in css: please tell me #}
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
{% endif %}{# extra nav #}
{% endblock content_wrapper_outer %}
{% block js %} {% endblock %} {# Flashes #} {{config.HTML_EXTRA_BODY|safe}} {{load_custom_html('customBody.html')|safe}} {{plugin_html_body_inject()|safe}}