Fix the pagination class placement

It causes the styling to be wonkily applied (and more difficult at
that).
This commit is contained in:
Gabriel Arazas 2020-10-30 19:45:30 +08:00
parent aa67aa0932
commit c0a2488a58
2 changed files with 7 additions and 2 deletions

View File

@ -20,6 +20,11 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version
* The post metadata styling.
=== Fixed
* The pagination classes has been placed in the right elements.
=== Removed
* The `hidden` frontmatter option has been removed in favor of the https://gohugo.io/content-management/build-options/[build options].

View File

@ -41,8 +41,8 @@
{{- $ellipsed = true -}}
{{- end -}}
{{- if $showNumber }}
<li class="{{ if eq . $pag }} page-link--active{{ end }}">
<a class="page-link" href="{{ .URL }}"
<li>
<a class="page-link{{ if eq . $pag }}--active{{ end }}" href="{{ .URL }}"
{{- if eq (sub $pag.PageNumber .PageNumber) 1 }}
rel="prev"
aria-label="Previous"