Try adding a TOC sidebar

This commit is contained in:
Peter Desmet 2018-08-27 12:31:06 +12:00 committed by GitHub
parent d57c6664db
commit 41d35cc27a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 1 deletions

View File

@ -6,7 +6,21 @@
{% include navbar.html %}
<main class="container-fluid">
<div class="row">
<div class="col-12 col-md-3 order-md-2 theme-sidebar-primary">
<button class="btn d-md-none w-100" type="button" data-toggle="collapse" data-target="#theme-sidebar-nav">
<i class="fa fa-bars fa-lg"></i>
</button>
<nav class="collapse" id="theme-sidebar-nav">
{% include toc.html html=content class="nav.flex-column" item_class="nav-item" %}
</nav>
</div>
<div class="col-12 col-md-9 order-md-1">
{{ content }}
</div>
</div>
</main>
{% include footer.html %}