{{ $menuitems := .Site.Params.sitemenuitems }} {{ $sitesections := .Site.Sections }} {{ $url := .URL }} {{ $perma := .Permalink }} {{ range $menuitems }} {{ $menuitem := . }} {{ range $section,$content := $sitesections}} {{if eq $section ($menuitem | urlize)}}
  • {{ replace $section "-" " "| title }} {{if gt (len $content.Pages) 1 }}
      {{range $content.Pages}}
    • {{with .LinkTitle}}{{. | markdownify }}{{else}}{{.Title | markdownify}}{{end}}
    • {{end}}
    {{end}}
  • {{ end }} {{ end }} {{ end }}