diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-08-23 23:47:01 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-08-23 23:47:01 -0400 |
commit | 8d25b63d8051aea5b9ee231e67edd9c55d1c04d3 (patch) | |
tree | 4cead863fe2a596bc89f1cf4eb04aa25b7d709db /generators | |
parent | b52ee709f18020e00339dd1b4c5d765dfde775d6 (diff) | |
download | thedroneely.com-8d25b63d8051aea5b9ee231e67edd9c55d1c04d3.tar.gz thedroneely.com-8d25b63d8051aea5b9ee231e67edd9c55d1c04d3.tar.bz2 thedroneely.com-8d25b63d8051aea5b9ee231e67edd9c55d1c04d3.zip |
hugo/layouts/partials/pagination: Fix disabled check on next button
Diffstat (limited to 'generators')
-rw-r--r-- | generators/hugo/themes/tdro/layouts/partials/pagination.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generators/hugo/themes/tdro/layouts/partials/pagination.html b/generators/hugo/themes/tdro/layouts/partials/pagination.html index 6970ff8..37000de 100644 --- a/generators/hugo/themes/tdro/layouts/partials/pagination.html +++ b/generators/hugo/themes/tdro/layouts/partials/pagination.html @@ -13,7 +13,7 @@ </a> <a {{ if not (le (int $MyPaginator) $HugoPaginator.PageNumber) }}{{ if $HugoPaginator.HasNext }} href="{{ $HugoPaginator.Next.URL }}" {{ end }}{{ end }} - class="pagination-next {{ if not $HugoPaginator.HasPrev }}disabled{{ end }}" + class="pagination-next {{ if le (int $MyPaginator) $HugoPaginator.PageNumber }}disabled{{ end }}" aria-label="Next page" {{ if le (int $MyPaginator) $HugoPaginator.PageNumber }}aria-hidden="true"{{ end }}> Next </a> |