Initial commit
This commit is contained in:
commit
4e10967600
40 changed files with 1650 additions and 0 deletions
13
layouts/_partials/pagesTOC.html
Normal file
13
layouts/_partials/pagesTOC.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{{- $page := .page }}
|
||||
{{- $header_level := .header_level }}
|
||||
{{- if gt $page.Pages.Len 0 }}
|
||||
<ol>
|
||||
{{ range $page.Pages }}
|
||||
<li>
|
||||
<h{{ $header_level }}><a href='{{ .RelPermalink }}'>{{ .Title }}</a></h{{ $header_level }}>
|
||||
{{- $header_level := add $header_level 1 }}
|
||||
{{ partial "pagesTOC.html" (dict "page" . "header_level" $header_level) }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ol>
|
||||
{{ end -}}
|
Loading…
Add table
Add a link
Reference in a new issue