6-layer breadcrumbs

This commit is contained in:
mDuo13
2018-04-25 09:18:54 -07:00
parent bd21d079a0
commit 58d4e4dab9
2 changed files with 4 additions and 1 deletions

View File

@@ -210,7 +210,7 @@ pages:
targets:
- local
- name: References
- name: rippled API
funnel: Docs
doc_type: References
supercategory: rippled API

View File

@@ -7,6 +7,9 @@
{% if currentpage.doc_type and currentpage != pages|selectattr('doc_type', 'equalto', currentpage.doc_type)|first%}
<li class="active breadcrumb-item"><a href="{{ (pages|selectattr('doc_type', 'equalto', currentpage.doc_type)|first).html }}">{{ currentpage.doc_type }}</a></li>
{% endif %}
{% if currentpage.supercategory and currentpage != pages|selectattr('supercategory', 'equalto', currentpage.supercategory)|first %}
<li class="active breadcrumb-item"><a href="{{ (pages|selectattr('supercategory', 'equalto', currentpage.supercategory)|first).html }}">{{ currentpage.supercategory }}</a></li>
{% endif %}
{% if currentpage.category and currentpage != pages|selectattr('category', 'equalto', currentpage.category)|first %}
<li class="active breadcrumb-item"><a href="{{ (pages|selectattr('category', 'equalto', currentpage.category)|first).html }}">{{ currentpage.category }}</a></li>
{% endif %}