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:
|
||||
-
|
||||
scope:
|
||||
path: docs
|
||||
path: ""
|
||||
values:
|
||||
layout: sidebar
|
||||
|
||||
collections_dir: docs
|
||||
collections:
|
||||
install-and-build:
|
||||
output: true
|
||||
caption: Install and build
|
||||
sidebar: true
|
||||
Mobile:
|
||||
output: true
|
||||
caption: Mobile-related
|
||||
|
|
|
|||
|
|
@ -9,9 +9,8 @@ layout: default
|
|||
<div class="list-group">
|
||||
<a class="list-group-item active">{{ coll.caption }}</a>
|
||||
{% for doc in coll.docs %}
|
||||
{% capture url %}/{{ site.collections_dir}}/{{ doc.url }}{% endcapture %}
|
||||
<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>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
@ -20,7 +19,7 @@ layout: default
|
|||
</div>
|
||||
<div class="col-md-9" id="content">
|
||||
{% if page.title %}
|
||||
<h1 class="featurette-heading">{{ page.title }}</h1>
|
||||
<h1 class="featurette-heading">{% include title.html doc=page coll=page.collection %}</h1>
|
||||
{% endif %}
|
||||
|
||||
{{ content }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue