{{ if .IsHome }} {{ .Site.Title }} {{ else }} {{ .Type }} {{ end }}
    {{ $currentURL := .Permalink }} {{ range (.Site.GetPage "section" .Type).Pages }} {{ $sectionName1 := index (last 1 (split (delimit (split .Permalink "/") "," "") ",")) 0 }} {{ $sectionName2 := index (last 2 (split (delimit (split $currentURL "/") "," "") ",")) 0 }} {{ if .Params.Collapsible }} {{ .Title }} {{ partial "svgs/arrow-right.svg" (dict "width" 22 "height" 22) }}
      {{ range .Pages.ByWeight }} {{ $lastUrlElement1 := index (last 1 (split (delimit (split .Permalink "/") "," "") ",")) 0 }} {{ $lastUrlElement2 := index (last 1 (split (delimit (split $currentURL "/") "," "") ",")) 0 }}
    • {{ .Title }}
    • {{ end }}
    {{ else }} {{ $lastUrlElement1 := index (last 1 (split (delimit (split .Permalink "/") "," "") ",")) 0 }} {{ $lastUrlElement2 := index (last 1 (split (delimit (split $currentURL "/") "," "") ",")) 0 }}
  • {{ .Title }}
  • {{ end }} {{ end }}