Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/tummychow/lanyon-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rwxr-xr-xlayouts/index.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 7391f5b..dfb3889 100755
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -14,7 +14,17 @@
</div>
<div class="pagination">
- {{ template "_internal/pagination.html" . }}
+ {{ if $paginator.HasNext }}
+ <a class="pagination-item older" href="{{ $paginator.Next.URL }}">Older</a>
+ {{ else }}
+ <span class="pagination-item older">Older</span>
+ {{ end }}
+
+ {{ if $paginator.HasPrev }}
+ <a class="pagination-item newer" href="{{ $paginator.Prev.URL }}">Newer</a>
+ {{ else }}
+ <span class="pagination-item newer">Newer</span>
+ {{ end }}
</div>
{{ partial "default_foot.html" . }}