Skip to content

Commit

Permalink
Range over .Site.RegularPages in index.html
Browse files Browse the repository at this point in the history
See #28
  • Loading branch information
EmielH committed Sep 30, 2019
1 parent 7eb3a3f commit aeb416a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
{{ partial "index/introduction.html" . }}

<div class="catalogue">
{{ range (.Paginate .Pages).Pages }}
{{ range (.Paginate .Site.RegularPages).Pages }}
{{ .Render "summary" }}
{{ end }}
</div>

<div class="pagination">
{{ if .Paginator.HasPrev }}
<a href="{{ .Paginator.Prev.URL }}" class="left arrow">&#8592;</a>
{{ end }}
{{ if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.URL }}" class="right arrow">&#8594;</a>
{{ end }}

<span>{{ .Paginator.PageNumber }}</span>
</div>
</main>
Expand Down

0 comments on commit aeb416a

Please sign in to comment.