mirror of
https://github.com/foo-dogsquared/hugo-theme-contentful.git
synced 2025-01-30 22:57:55 +00:00
Fix the pagination class placement
It causes the styling to be wonkily applied (and more difficult at that).
This commit is contained in:
parent
aa67aa0932
commit
c0a2488a58
@ -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].
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user