mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Nice title and sidebar for all docs
This commit is contained in:
parent
48f91311b6
commit
f44e3ece69
2 changed files with 7 additions and 4 deletions
|
|
@ -10,12 +10,16 @@ favicon: /static/images/favicon.png
|
||||||
defaults:
|
defaults:
|
||||||
-
|
-
|
||||||
scope:
|
scope:
|
||||||
path: docs
|
path: ""
|
||||||
values:
|
values:
|
||||||
layout: sidebar
|
layout: sidebar
|
||||||
|
|
||||||
collections_dir: docs
|
collections_dir: docs
|
||||||
collections:
|
collections:
|
||||||
|
install-and-build:
|
||||||
|
output: true
|
||||||
|
caption: Install and build
|
||||||
|
sidebar: true
|
||||||
Mobile:
|
Mobile:
|
||||||
output: true
|
output: true
|
||||||
caption: Mobile-related
|
caption: Mobile-related
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,8 @@ layout: default
|
||||||
<div class="list-group">
|
<div class="list-group">
|
||||||
<a class="list-group-item active">{{ coll.caption }}</a>
|
<a class="list-group-item active">{{ coll.caption }}</a>
|
||||||
{% for doc in coll.docs %}
|
{% for doc in coll.docs %}
|
||||||
{% capture url %}/{{ site.collections_dir}}/{{ doc.url }}{% endcapture %}
|
|
||||||
<a class="list-group-item"
|
<a class="list-group-item"
|
||||||
href="{% include link.html url=url %}">
|
href="{% include link.html url=doc.url %}">
|
||||||
{% include title.html doc=doc coll=coll %}</a>
|
{% include title.html doc=doc coll=coll %}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -20,7 +19,7 @@ layout: default
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9" id="content">
|
<div class="col-md-9" id="content">
|
||||||
{% if page.title %}
|
{% if page.title %}
|
||||||
<h1 class="featurette-heading">{{ page.title }}</h1>
|
<h1 class="featurette-heading">{% include title.html doc=page coll=page.collection %}</h1>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ content }}
|
{{ content }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue