Skip to content

Commit

Permalink
add TOC in single page layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Buzoianu committed Apr 10, 2022
1 parent c438096 commit 8dd21f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ <h1 class="title">{{ .Title }}</h1>
{{ .Params.tldr }}
</div>{{ end }}

<div id="toc" class="well col-md-4 col-sm-6">
{{ .TableOfContents }}
</div>
<section class="body">
{{ .Content }}
</section>
Expand Down

0 comments on commit 8dd21f2

Please sign in to comment.