even better table of contents
This commit is contained in:
parent
7430cf6e7e
commit
1692e29d21
2 changed files with 7 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
@extend .menu-list;
|
||||
|
||||
&, ul {
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue