{{ if .ver }} {{ $sections := where .context.Sections ".Params.section1.version" "==" .ver }} {{ range $sections }} {{ partial "section_item" . }} {{ end }} {{ range $sections }}
  • {{ end }} {{ else }} {{ $sections := .context.Sections.ByWeight }} {{ range $sections }} {{ partial "section_item" . }} {{ end }} {{ range $sections }}
  • {{ end }} {{ end }}