Lego2012
6/12/2017 - 7:31 PM

list.html Example

list.html Example

{{ define "main" }}
    <article>
        <div>
          {{ .Content }}
      </div>
    </article>
    <div>
        {{ $section := where .Data.Pages "Section" .Section }}
        <section>
          {{ range  $section }}
          <div>
              {{ partial "summary" . }}
          </div>
          {{ end }}
      </section>
      {{ template "_internal/pagination.html" . }}
    </div>
{{ end }}