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;
|
@extend .menu-list;
|
||||||
|
|
||||||
&, ul {
|
&, ul {
|
||||||
|
margin: 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
<% if item[:toc] %>
|
<% if item[:toc] %>
|
||||||
|
<aside class="menu is-pulled-right" markdown="1">
|
||||||
|
<p class="menu-label">
|
||||||
|
Table of Contents
|
||||||
|
</p>
|
||||||
* x
|
* x
|
||||||
{:toc .is-pulled-right}
|
{:toc}
|
||||||
|
</aside>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
|
Loading…
Reference in a new issue