mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 03:35:51 +00:00
Move breadcrumbs to include
This commit is contained in:
@@ -44,22 +44,7 @@
|
||||
</div><!-- /.navbar-header -->
|
||||
<div class="nav">
|
||||
{% block breadcrumbs %}
|
||||
<ul class="breadcrumb">
|
||||
<li class="crumb-top"><a href="index.html" style="display: none;"> </a></li>
|
||||
{% if currentpage.funnel and currentpage != pages|selectattr('funnel', 'equalto', currentpage.funnel)|first %}
|
||||
<li class="active crumb-category"><a href="{{ (pages|selectattr('funnel', 'equalto', currentpage.funnel)|first).html }}">{{ currentpage.funnel }}</a></li>
|
||||
{% endif %}
|
||||
{% if currentpage.doc_type and currentpage != pages|selectattr('doc_type', 'equalto', currentpage.doc_type)|first%}
|
||||
<li class="active crumb-category"><a href="{{ (pages|selectattr('doc_type', 'equalto', currentpage.doc_type)|first).html }}">{{ currentpage.doc_type }}</a></li>
|
||||
{% endif %}
|
||||
{% if currentpage.category and currentpage != pages|selectattr('category', 'equalto', currentpage.category)|first %}
|
||||
<li class="active crumb-category"><a href="{{ (pages|selectattr('category', 'equalto', currentpage.category)|first).html }}">{{ currentpage.category }}</a></li>
|
||||
{% endif %}
|
||||
{% if currentpage.subcategory and currentpage != pages|selectattr('subcategory', 'equalto', currentpage.subcategory)|first %}
|
||||
<li class="active crumb-category"><a href="{{ (pages|selectattr('subcategory', 'equalto', currentpage.subcategory)|first).html }}">{{ currentpage.subcategory }}</a></li>
|
||||
{% endif %}
|
||||
<li class="active crumb-current">{{ currentpage.name }}</li>
|
||||
</ul>
|
||||
{% include 'template-breadcrumbs.html' %}
|
||||
{% endblock %}
|
||||
<div class="draft-warning">DRAFT PAGE</div>
|
||||
<div class="github-edit-wrap">
|
||||
|
||||
16
tool/template-breadcrumbs.html
Normal file
16
tool/template-breadcrumbs.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<ul class="breadcrumb">
|
||||
<li class="crumb-top"><a href="index.html" style="display: none;"> </a></li>
|
||||
{% if currentpage.funnel and currentpage != pages|selectattr('funnel', 'equalto', currentpage.funnel)|first %}
|
||||
<li class="active crumb-category"><a href="{{ (pages|selectattr('funnel', 'equalto', currentpage.funnel)|first).html }}">{{ currentpage.funnel }}</a></li>
|
||||
{% endif %}
|
||||
{% if currentpage.doc_type and currentpage != pages|selectattr('doc_type', 'equalto', currentpage.doc_type)|first%}
|
||||
<li class="active crumb-category"><a href="{{ (pages|selectattr('doc_type', 'equalto', currentpage.doc_type)|first).html }}">{{ currentpage.doc_type }}</a></li>
|
||||
{% endif %}
|
||||
{% if currentpage.category and currentpage != pages|selectattr('category', 'equalto', currentpage.category)|first %}
|
||||
<li class="active crumb-category"><a href="{{ (pages|selectattr('category', 'equalto', currentpage.category)|first).html }}">{{ currentpage.category }}</a></li>
|
||||
{% endif %}
|
||||
{% if currentpage.subcategory and currentpage != pages|selectattr('subcategory', 'equalto', currentpage.subcategory)|first %}
|
||||
<li class="active crumb-category"><a href="{{ (pages|selectattr('subcategory', 'equalto', currentpage.subcategory)|first).html }}">{{ currentpage.subcategory }}</a></li>
|
||||
{% endif %}
|
||||
<li class="active crumb-current">{{ currentpage.name }}</li>
|
||||
</ul>
|
||||
Reference in New Issue
Block a user