github.com/muhammadn/cortex@v1.9.1-0.20220510110439-46bb7000d03d/website/layouts/partials/section-index.html (about)

     1  {{ $pages := (where .Site.Pages "Section" .Section).ByWeight }}
     2  {{ $parent := .Page }}
     3  
     4  {{ if $parent.Params.no_section_index }}
     5      {{/* If no_section_index is true we don't show a list of subpages */}}
     6  {{ else }}
     7      {{ if $parent.Params.no_section_index_title }}{{ else }}
     8          <h2 id="more-in-this-section">More in this section</h2>
     9      {{ end }}
    10      <ul>
    11          {{ range $pages }}
    12              {{ if eq .Parent $parent }}
    13                  <li><a href="{{ .RelPermalink }}">{{- .Title -}}</a></li>
    14              {{ end }}
    15          {{ end }}
    16      </ul>
    17  {{ end }}