diff options
-rw-r--r-- | LICENSE.md | 2 | ||||
-rw-r--r-- | layouts/_default/list.html | 11 | ||||
-rw-r--r-- | theme.toml | 2 |
3 files changed, 12 insertions, 3 deletions
@@ -1,6 +1,6 @@ The MIT License -Copyright 2018 Giovanni T. Parra +Copyright 2018 fiatjaf Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 888ff4f..0f65485 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -11,7 +11,7 @@ </article> {{ end }} <ul> - {{ range .Data.Pages.ByDate }} + {{ range .Paginator.Pages }} <li> <article> {{ partial "article-header.html" . }} @@ -23,4 +23,13 @@ {{ end }} </ul> </section> + +<footer> + <nav> + <ul> + <li><a {{ if .Paginator.HasPrev }}href="{{ .Paginator.Prev.URL }}"{{ end }}>prev</a></li> + <li><a {{ if .Paginator.HasNext }}href="{{ .Paginator.Next.URL }}"{{ end }}>next</a></li> + </ul> + </nav> +</footer> {{ end }} @@ -8,7 +8,7 @@ features = ["multiple themes", "not extensible"] min_version = "0.38.2" [author] - name = "Giovanni T" + name = "fiatjaf" homepage = "https://fiatjaf.alhur.es/" [original] |