{{ $_hugo_config := `{ "version": 1 }` }} {{- $showhidden := .Get "showhidden"}} {{- $style := .Get "style" | default "li" }} {{- $depth := .Get "depth" | default 1 }} {{- $withDescription := .Get "description" | default false }} {{- $sortTerm := .Get "sort" | default "Weight" }} {{- .Scratch.Set "current" .Page }} {{- if (.Get "page")}} {{- with .Site.GetPage "section" (.Get "page") }} {{- $.Scratch.Set "current" . }} {{- end }} {{- end }} {{- $cpage := (.Scratch.Get "current") }} {{.Inner|safeHTML}} {{ define "childs" }} {{- range .menu }} {{- if and .Params.hidden (not $.showhidden) }} {{- else}} {{- if hasPrefix $.style "h"}} {{- $num := sub ( int (trim $.style "h") ) 1 }} {{- $numn := add $num $.count }} {{- (printf "" $numn)|safeHTML}} {{ .Title }} {{- (printf "" $numn)|safeHTML}} {{- else}} {{- (printf "<%s>" $.style)|safeHTML}} {{ .Title }} {{- (printf "" $.style)|safeHTML}} {{- end}} {{- if $.description}} {{- if .Description}}

{{.Description}}

{{- else}}

{{.Summary}}

{{- end}} {{- end}}
{{- if lt $.count $.depth}} {{- if eq $.style "li" }} {{- end }} {{- end }} {{- end }} {{- end }} {{- end }}