{{ define "main" }}
{{ range .Paginator.Pages }} {{ partial "row.html" . }} {{ end }}
{{ end }} {{ define "pagination" }} {{ if .Paginator.HasPrev }}
  • Previous
  • {{ else }}
  • Previous
  • {{ end }} {{ $current_num := .Paginator.PageNumber }} {{ range (seq 1 .Paginator.TotalPages) }} {{ if (eq $current_num .)}}
  • {{.}}
  • {{ else }}
  • {{.}}
  • {{ end }} {{end}} {{ if .Paginator.HasNext }}
  • Next
  • {{ else }}
  • Next
  • {{ end }} {{ end }}