mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
initial framework for subpage navigation
This commit is contained in:
parent
d93a36edc8
commit
4f7ddd71c5
4 changed files with 29 additions and 15 deletions
18
_includes/nav.html
Normal file
18
_includes/nav.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<div class="topbar">
|
||||
<div class="fill">
|
||||
<div class="container">
|
||||
<h3><a href="/"><img src="img/logo_small.png" id="thelogo"/>Bitcoin</a></h3>
|
||||
<ul>
|
||||
{% for link in site.navigation %}
|
||||
{% assign active = nil %}
|
||||
{% if page.url == link.url or page.layout == link.layout %}
|
||||
{% assign active = 'active' %}
|
||||
{% endif %}
|
||||
<li{% if active %} class="{{ active }}"{% endif %}>
|
||||
<a href="{{ link.url }}">{{ link.text }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue