even better table of contents

This commit is contained in:
Lorin Werthen 2016-10-31 12:37:19 +01:00
parent 7430cf6e7e
commit 1692e29d21
No known key found for this signature in database
GPG key ID: F11FFC921E0E08E0
2 changed files with 7 additions and 1 deletions

View file

@ -8,6 +8,7 @@
@extend .menu-list;
&, ul {
margin: 0;
list-style: none;
}
}

View file

@ -1,6 +1,11 @@
<% if item[:toc] %>
<aside class="menu is-pulled-right" markdown="1">
<p class="menu-label">
Table of Contents
</p>
* x
{:toc .is-pulled-right}
{:toc}
</aside>
<% end %>
<%= yield %>