Skip to content

Commit 4389128

Browse files
committed
Change .Pages to .Site.RegularPages in index.html
1 parent b677ae2 commit 4389128

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

layouts/index.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{{ define "main" }}
2+
3+
<main>
4+
{{ partial "index/introduction.html" . }}
5+
6+
<div class="catalogue">
7+
{{ range (.Paginate .Site.RegularPages).Pages }}
8+
{{ .Render "summary" }}
9+
{{ end }}
10+
</div>
11+
12+
<div class="pagination">
13+
{{ if .Paginator.HasPrev }}
14+
<a href="{{ .Paginator.Prev.URL }}" class="left arrow">&#8592;</a>
15+
{{ end }}
16+
{{ if .Paginator.HasNext }}
17+
<a href="{{ .Paginator.Next.URL }}" class="right arrow">&#8594;</a>
18+
{{ end }}
19+
20+
<span>{{ .Paginator.PageNumber }}</span>
21+
</div>
22+
</main>
23+
24+
{{ end }}

0 commit comments

Comments
 (0)