Nice title and sidebar for all docs

This commit is contained in:
Adam Schmideg 2019-02-19 11:59:00 +01:00
parent 48f91311b6
commit f44e3ece69
2 changed files with 7 additions and 4 deletions

View file

@ -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

View file

@ -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 }}