Layout: Add Breadcrumbs To Dev Docs

This commit is contained in:
David A. Harding 2015-07-10 06:22:02 -04:00
parent df3b8dcf28
commit 7d7494155f
No known key found for this signature in database
GPG key ID: 4B29C30FF29EC4B7
10 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{% comment %}
This file is licensed under the MIT License (MIT) available on
http://opensource.org/licenses/MIT.
{% endcomment %}
<div class="breadcrumbs">
{% for crumb in page.breadcrumbs %}
{% if forloop.last %}
{% case crumb %}
{% when "GLOSSARY_ENTRY_TITLE" %}
{% comment %} ## Only show first synonym in crumb ## {% endcomment %}
{% for synonym in page.required.synonyms_shown_in_glossary_capitalize_first_letter %}
{% if forloop.first %}{{synonym}}{% endif %}
{% endfor %}
{% else %}{{crumb}}
{% endcase %}
{% else %}
{% case crumb %}
{% comment %}/// Alphabetical order by crumb \\\{% endcomment %}
{% when "bitcoin" %}<a href="/{{page.lang}}/">{% translate bitcoin vocabulary %}</a>
{% when "dev docs" %}<a href="/en/developer-documentation">Dev Docs</a>
{% when "glossary" %}<a href="/en/developer-glossary">Glossary</a>
{% else %}{% die "Breadcrumb not found in _includes/layout/breadcrumbs.html" %}
{% endcase %}
&gt;
{% endif %}
{% endfor %}
</div>