
— Layout * Create html templates to print breadcrumb's and submenu's lists. * Remove ‘o_main_back’ ( no longer needed) * Minimum mobile support for submenu. Note: The default website submenu should be refactored in order to support mobile by default — Style * Create a less mixin to handle all doc’s dropdowns * Add a specific style for breadcrumb when it’s placed inside the submenu.
23 lines
914 B
HTML
23 lines
914 B
HTML
{# warning: if doc structure change, these rules may have to change as well #}
|
|
|
|
{# ===== VARIABLES ====== #}
|
|
{% set master_doc_short_name = 'User Doc' %}
|
|
|
|
{% if pagename == master_doc %}
|
|
<li><a href="{{ pathto(master_doc) }}" class="active">{{ master_doc_short_name }}</a></li>
|
|
{% else %}
|
|
{% for parent in parents %}
|
|
{% if loop.length > 1%}
|
|
{% if loop.first %}
|
|
<li><a href="{{ pathto(master_doc) }}">{{ master_doc_short_name }}</a></li>
|
|
{% else %}
|
|
{% if loop.index == 2 %}
|
|
<li><a href="{{ parent.link|e }}">{{parent.title}}</a></li>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% else %}
|
|
<li><a href="{{ pathto(master_doc) }}">{{ master_doc_short_name }}</a></li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
<li class="active"><a href="#">{{ meta.get('main-title', title) }}</a></li>
|
|
{% endif %} |