Skip to content

Commit

Permalink
Add TOC column to docs
Browse files Browse the repository at this point in the history
Signed-off-by: lucperkins <lucperkins@gmail.com>
  • Loading branch information
lucperkins committed Jan 31, 2019
1 parent 3bb843e commit 8462bbf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions themes/falco-fresh/assets/style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ $section-padding: 1rem
@import "bulma/bulma"

@import "fresh/core"
@import "toc"

.content ol
margin-left: 1rem
Expand Down
1 change: 1 addition & 0 deletions themes/falco-fresh/assets/toc.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.toc
14 changes: 12 additions & 2 deletions themes/falco-fresh/layouts/partials/docs/article.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
<article class="article">
<section class="section">
<div class="container">
<div class="content">
{{ .Content }}
<div class="columns is-variable is-8">
<div class="column is-9">
<div class="content">
{{ .Content }}
</div>
</div>

<div class="column is-3 is-hidden-mobile">
<div class="toc">
{{ .TableOfContents }}
</div>
</div>
</div>
</div>
</section>
Expand Down

0 comments on commit 8462bbf

Please sign in to comment.