This commit is contained in:
@@ -16,6 +16,9 @@ frontmatter:
|
|||||||
- :fileModTime
|
- :fileModTime
|
||||||
- :default
|
- :default
|
||||||
|
|
||||||
|
pagination:
|
||||||
|
pagerSize: 15
|
||||||
|
|
||||||
taxonomies:
|
taxonomies:
|
||||||
author: author
|
author: author
|
||||||
category: categories
|
category: categories
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
<ul>
|
||||||
|
{{ if .HasPrev }}
|
||||||
|
{{ if .Prev.HasPrev }}
|
||||||
|
<li><a href="{{ .First.URL }}">Première page</a></li>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<li><a href="{{ .Prev.URL }}">Page précédente</a></li>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if .HasNext }}
|
||||||
|
<li><a href="{{ .Next.URL }}">Page suivante</a></li>
|
||||||
|
|
||||||
|
{{ if .Next.HasNext }}
|
||||||
|
<li><a href="{{ .Last.URL }}">Dernière page</a></li>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
@@ -3,7 +3,9 @@
|
|||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
||||||
{{ range .RegularPagesRecursive.ByDate.Reverse }}
|
{{ $pages := .RegularPagesRecursive.ByDate.Reverse }}
|
||||||
|
{{ $pager := .Paginate $pages }}
|
||||||
|
{{ range $pager.Pages }}
|
||||||
<article>
|
<article>
|
||||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||||
|
|
||||||
@@ -14,5 +16,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ partial "pagermenu.html" $pager }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}
|
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}
|
||||||
|
|||||||
Reference in New Issue
Block a user