Archived
Add pagination to homepage
This commit is contained in:
@@ -18,15 +18,16 @@
|
||||
|
||||
</section>
|
||||
|
||||
<section class="container list">
|
||||
<div class="content centered">
|
||||
<ul>
|
||||
{{ range .Paginator.Pages }}
|
||||
<li>
|
||||
<span>{{ .Date.Format "January 2, 2006" }}</span><a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ partial "pagination.html" . }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container list">
|
||||
<div class="content centered">
|
||||
<ul>
|
||||
{{ range .Paginator.Pages }}
|
||||
<li>
|
||||
<span>{{ .Date.Format "2. Jan, 2006" }}</span><a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ partial "pagination.html" . }}
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user