hugo-ataru

Hugo theme with titleless posts and microformats2 support

git clone git://git.shimmy1996.com/hugo-ataru.git
commit b179fabe6e9f1fe0ea1562cca43240627ee6d80b
parent b36d232c077eb2bf80d65eaf69608370bcec5e81
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Tue, 26 Jul 2022 22:36:01 -0500

No need to reverse order

Diffstat:
Mlayouts/partials/get_paginator.html | 2+-
Mlayouts/partials/nav_page.html | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/partials/get_paginator.html b/layouts/partials/get_paginator.html
@@ -2,4 +2,4 @@
 {{ if .IsHome }}
 {{ $pages = (where .Site.RegularPages "Section" "!=" "") }}
 {{ end }}
-{{ return .Paginate $pages.ByDate.Reverse 8 }}
+{{ return .Paginate $pages.ByDate 8 }}
diff --git a/layouts/partials/nav_page.html b/layouts/partials/nav_page.html
@@ -1,6 +1,6 @@
 {{ if .IsNode }}
 {{ $pag := partial "get_paginator.html" . }}
 {{ if $pag.HasNext }}<a href="{{ $pag.Next.URL }}">←</a>{{ else }}←{{ end }}
-{{ add 1 (sub $pag.TotalPages $pag.PageNumber) }}/{{ $pag.TotalPages }}
+{{ $pag.PageNumber }}/{{ $pag.TotalPages }}
 {{ if $pag.HasPrev }}<a href="{{ $pag.Prev.URL }}">→</a>{{ else }}→{{ end }}
 {{ end }}