list.html 445 B

123456789101112131415161718
  1. {{- define "main" -}}
  2. {{ partial "page_header.html" . }}
  3. <div class="universal-wrapper">
  4. {{ with .Content }}
  5. <div class="article-style">{{ . }}</div>
  6. {{ end }}
  7. {{ $paginator := .Paginate .Pages }}
  8. {{ range $index, $post := $paginator.Pages }}
  9. {{ partial "functions/render_view" (dict "page" $ "item" . "view" ($.Params.view | default "compact") "index" $index) }}
  10. {{end}}
  11. {{ partial "pagination" . }}
  12. </div>
  13. {{- end -}}