docs/src/layouts/partials/sidebar.html
Documentation {{ partial "sidebar/menu" (dict "Ctx" . "Section" "overview" "Open" true) }} {{ partial "sidebar/menu" (dict "Ctx" . "Section" "web-tutorials") }} {{ partial "sidebar/menu" (dict "Ctx" . "Section" "cli-tutorials") }} {{ partial "sidebar/menu" (dict "Ctx" . "Section" "concepts" "Open" true) }} {{ partial "sidebar/menu" (dict "Ctx" . "Section" "addons" "Open" true) }} {{ partial "sidebar/menu" (dict "Ctx" . "Section" "api") }} {{ partial "sidebar/menu" (dict "Ctx" . "Section" "howto" "Open" true) }} {{ partial "sidebar/menu" (dict "Ctx" . "Section" "tutorials" "Open" true) }} {{ define "partials/sidebar/menu" }} {{ $section := (where .Ctx.Site.RegularPages "Section" .Section).ByWeight }} {{ $open := and (or .Open (eq .Ctx.Page.Section .Section)) "open" }} {{ $sectionPage := .Ctx.Site.GetPage (printf "/%s" .Section) }} #{{ $sectionPage.Title }} {{ range $section }} {{ .Name }} {{ end }} {{ end }}