mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Layout: Add Breadcrumbs To Dev Docs
This commit is contained in:
parent
df3b8dcf28
commit
7d7494155f
10 changed files with 58 additions and 0 deletions
28
_includes/layout/base/breadcrumbs.html
Normal file
28
_includes/layout/base/breadcrumbs.html
Normal 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 %}
|
||||||
|
>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
|
@ -22,6 +22,7 @@
|
||||||
</div></div>
|
</div></div>
|
||||||
|
|
||||||
<div class="body">
|
<div class="body">
|
||||||
|
{% include layout/base/breadcrumbs.html %}
|
||||||
{% include layout/base/content.html %}
|
{% include layout/base/content.html %}
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
{% include layout/base/footer-menu.html %}
|
{% include layout/base/footer-menu.html %}
|
||||||
|
|
|
@ -4,6 +4,11 @@
|
||||||
|
|
||||||
layout: base
|
layout: base
|
||||||
lang: en
|
lang: en
|
||||||
|
breadcrumbs:
|
||||||
|
- bitcoin
|
||||||
|
- dev docs
|
||||||
|
- glossary
|
||||||
|
- GLOSSARY_ENTRY_TITLE
|
||||||
---
|
---
|
||||||
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
||||||
|
|
||||||
|
|
|
@ -359,6 +359,10 @@ table td,table th{
|
||||||
display:block;
|
display:block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.breadcrumbs {
|
||||||
|
font-size: 75%;
|
||||||
|
padding-left: 10px;
|
||||||
|
}
|
||||||
.content{
|
.content{
|
||||||
position:relative;
|
position:relative;
|
||||||
padding:30px 40px 40px 40px;
|
padding:30px 40px 40px 40px;
|
||||||
|
|
|
@ -706,6 +706,7 @@ en:
|
||||||
footer: "Released under the <a href=\"http://opensource.org/licenses/mit-license.php\" target=\"_blank\">MIT license</a>"
|
footer: "Released under the <a href=\"http://opensource.org/licenses/mit-license.php\" target=\"_blank\">MIT license</a>"
|
||||||
sponsor: "A community website sponsored by"
|
sponsor: "A community website sponsored by"
|
||||||
getstarted: "Get started with Bitcoin"
|
getstarted: "Get started with Bitcoin"
|
||||||
|
bitcoin-core: "Bitcoin Core"
|
||||||
url:
|
url:
|
||||||
about-us: about-us
|
about-us: about-us
|
||||||
bitcoin-for-developers: bitcoin-for-developers
|
bitcoin-for-developers: bitcoin-for-developers
|
||||||
|
|
|
@ -6,6 +6,9 @@ layout: base
|
||||||
lang: en
|
lang: en
|
||||||
id: developer-documentation
|
id: developer-documentation
|
||||||
title: "Developer Documentation - Bitcoin"
|
title: "Developer Documentation - Bitcoin"
|
||||||
|
breadcrumbs:
|
||||||
|
- bitcoin
|
||||||
|
- Developer Documentation
|
||||||
---
|
---
|
||||||
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,10 @@ layout: base
|
||||||
lang: en
|
lang: en
|
||||||
id: developer-examples
|
id: developer-examples
|
||||||
title: "Developer Examples - Bitcoin"
|
title: "Developer Examples - Bitcoin"
|
||||||
|
breadcrumbs:
|
||||||
|
- bitcoin
|
||||||
|
- dev docs
|
||||||
|
- Examples
|
||||||
---
|
---
|
||||||
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
title: Developer Glossary - Bitcoin
|
title: Developer Glossary - Bitcoin
|
||||||
layout: base
|
layout: base
|
||||||
lang: en
|
lang: en
|
||||||
|
breadcrumbs:
|
||||||
|
- bitcoin
|
||||||
|
- dev docs
|
||||||
|
- Glossary
|
||||||
---
|
---
|
||||||
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,10 @@ layout: base
|
||||||
lang: en
|
lang: en
|
||||||
id: developer-guide
|
id: developer-guide
|
||||||
title: "Developer Guide - Bitcoin"
|
title: "Developer Guide - Bitcoin"
|
||||||
|
breadcrumbs:
|
||||||
|
- bitcoin
|
||||||
|
- dev docs
|
||||||
|
- Guide
|
||||||
---
|
---
|
||||||
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,10 @@ layout: base
|
||||||
lang: en
|
lang: en
|
||||||
id: developer-reference
|
id: developer-reference
|
||||||
title: "Developer Reference - Bitcoin"
|
title: "Developer Reference - Bitcoin"
|
||||||
|
breadcrumbs:
|
||||||
|
- bitcoin
|
||||||
|
- dev docs
|
||||||
|
- Reference
|
||||||
---
|
---
|
||||||
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
<link rel="stylesheet" href="/css/jquery-ui.min.css">
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue