mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +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
|
@ -39,6 +39,15 @@ kramdown:
|
|||
coderay_bold_every: 10
|
||||
coderay_css: style
|
||||
|
||||
navigation:
|
||||
- text: News
|
||||
url: /news.html
|
||||
layout: post
|
||||
- text: About
|
||||
url: /about.html
|
||||
- text: Features
|
||||
url: /features.html
|
||||
|
||||
aliases:
|
||||
s_nakamoto: Satoshi Nakamoto
|
||||
--author=Satoshi Nakamoto: Satoshi Nakamoto
|
||||
|
|
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>
|
|
@ -29,6 +29,8 @@
|
|||
|
||||
<body>
|
||||
|
||||
{% include nav.html %}
|
||||
|
||||
{{ content }}
|
||||
|
||||
<div class="container">
|
||||
|
|
15
index.html
15
index.html
|
@ -5,21 +5,6 @@ DOWNLOAD_VERSION: 0.3.24
|
|||
ALERT_CLASS:
|
||||
ALERT:
|
||||
---
|
||||
<div class="topbar">
|
||||
<div class="fill">
|
||||
<div class="container">
|
||||
<h3><a href="#"><img src="img/logo_small.png" id="thelogo"/>Bitcoin</a></h3>
|
||||
<ul>
|
||||
<li class="active"><a href="#masthead">Home</a></li>
|
||||
<li><a href="#news">News</a></li>
|
||||
<li><a href="#about">About</a></li>
|
||||
<li><a href="#features">Features</a></li>
|
||||
<li><a href="#contributors">Contributors</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="masthead">
|
||||
<div class="inner">
|
||||
<div class="container">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue