26 lines
458 B
HTML
26 lines
458 B
HTML
{{ define "main" }}
|
|
{{ .TableOfContents }}
|
|
{{ .Content }}
|
|
|
|
{{ range .Pages }}
|
|
{{ partial "nodo" . }}
|
|
{{ .Render "li" }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ define "sidebar_menu" }}
|
|
<ul>
|
|
{{ range .Pages }}
|
|
<li><a href="{{ .Permalink }}">{{.Title}}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
|
|
<hr>
|
|
|
|
<ul>
|
|
{{ range .Parent.Pages }}
|
|
<li><a href="{{ .Permalink }}">{{.Title}}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end}}
|