Browse Source

add pagination

max.mehl 5 months ago
parent
commit
f9d19ce8f3
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      themes/hugo-sustain/layouts/_default/list.html

+ 2
- 1
themes/hugo-sustain/layouts/_default/list.html View File

@@ -26,13 +26,14 @@
26 26
       
27 27
       <div class="panel panel-default panel-overview">
28 28
         <div class="blogpost">
29
-          {{ range .Data.Pages.ByPublishDate.Reverse }}
29
+          {{ range .Paginator.Pages.ByPublishDate.Reverse }}
30 30
             <div class="blog-summary">
31 31
               <h4><strong><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></strong></h4>
32 32
               <div class="metadata">Posted on {{ .Date.Format "2 January 2006" }} - Tagged with {{ range $i, $tag := .Params.tags }}{{ if $i }}, {{ end }}<a href="/tags/{{ lower $tag }}">{{ $tag }}</a>{{ end }}</div>
33 33
               <p>{{ .Summary }} <a class="learn-more" href="{{ .RelPermalink }}"></a></p>
34 34
             </div>
35 35
           {{ end }}
36
+          {{ template "_internal/pagination.html" . }}
36 37
         </div>
37 38
       </div>
38 39
     </div>

Loading…
Cancel
Save