{#- vim: set et ts=8 sts=4 sw=4 ai: -#} {#- Meta tags #} {#- 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 ]] #} {#- Favicon and title #} {%- 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 %} {#- Otterwiki CSS #} {#- Plugin Static CSS #} {#- Otterwiki Print #} {#- Font awesome #} {#- pygments #} {%- if (library_requirements and library_requirements.requires_datatables) or force_load_libraries %} {%- endif %} {#- Roboto font (Used when Apple system fonts are not available) #} {#- custom.css for tweaking the default themes #} {#- Custom HTML head content from env #} {{config.HTML_EXTRA_HEAD|safe}} {#- Custom HTML head content from file #} {{load_custom_html('customHead.html')|safe}} {#- Plugin HTML head content #} {{plugin_html_head_inject()|safe}} {%- block head %} {%- endblock %} {%- if request.cookies.get('halfmoon_preferredMode') == "dark-mode" %} {#- Dark Mode Optimization -#} {#- Chrome, Firefox OS and Opera mobile address bar theming #} {#- Windows Phone mobile address bar theming #} {#- iOS Safari mobile address bar theming #} {% endif -%} {%- block bodytop %} {% endblock -%} {#- Page wrapper start #}
{#- Sticky alerts #}
{%- block navbarmain %} {#- Navbar start #} {#- Navbar end #} {%- endblock %} {%- block sidebaroverlay %} {#- Sidebar overlay #} {#- Sidebar start #} {#- Sidebar end #} {%- endblock %} {%- block content_wrapper_outer %} {#- Content wrapper start #}
{# 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 %}
{#- content #} {%- endblock content_wrapper %}
{#- col-xl-9 #} {# 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
{#- extra-nav #}
{#- extra-nav-container #} {%- endif %}{# extra nav #}
{#- row #}
{#- container #}
{#- Content wrapper end #} {%- endblock content_wrapper_outer %}
{#- Page wrapper end #} {#- Halfmoon JS #} {%- block js %} {%- endblock %} {# Flashes #} {#- custom js for tweaking an otter wiki #} {#- Custom HTML body content from env #} {{config.HTML_EXTRA_BODY|safe}} {#- Custom HTML body content from file #} {{load_custom_html('customBody.html')|safe}} {#- Plugin HTML body content #} {{plugin_html_body_inject()|safe}}