Merge pull request #47 from dasvh/1-adding-a-table-of-contents
1 adding a table of contents
This commit is contained in:
commit
77a22a3e62
2 changed files with 6 additions and 0 deletions
|
|
@ -2,6 +2,11 @@
|
||||||
<header class="content__header">
|
<header class="content__header">
|
||||||
<h1>{{ .Title | markdownify }}</h1>
|
<h1>{{ .Title | markdownify }}</h1>
|
||||||
</header>
|
</header>
|
||||||
|
{{ if .Params.toc }}
|
||||||
|
<aside>
|
||||||
|
{{ .TableOfContents }}
|
||||||
|
</aside>
|
||||||
|
{{ end }}
|
||||||
<div class="content__body">
|
<div class="content__body">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
1
layouts/shortcodes/toc.html
Normal file
1
layouts/shortcodes/toc.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{{ .Page.TableOfContents }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue