ADD table of contents
This commit is contained in:
parent
c1594f153b
commit
4ab9bdab6e
5 changed files with 85 additions and 1 deletions
|
@ -14,6 +14,12 @@
|
|||
</div>
|
||||
{{ end }}
|
||||
<!-- <h6>{{ .Date.Format "Mon, Jan 2, 2006" }}</h6> -->
|
||||
{{ if gt (.TableOfContents | findRE `<li>` | len) 4}}
|
||||
<div class="table-of-contents">
|
||||
{{ .TableOfContents }}
|
||||
<div class="extend" onclick="toggleTableOfContent(event)"><i class="icon-angle-right"></i></div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ end }}
|
0
layouts/_default/summary.html
Normal file
0
layouts/_default/summary.html
Normal file
Loading…
Add table
Add a link
Reference in a new issue