mirror of
https://github.com/danbee/danbarber.me.hugo.git
synced 2025-03-04 08:59:18 +00:00
Improve pagination links alignment
This commit is contained in:
parent
1758ab87e6
commit
051121f16d
@ -1,8 +1,9 @@
|
||||
.posts__pagination {
|
||||
@include container;
|
||||
padding: 1em $pad-min;
|
||||
}
|
||||
|
||||
.posts__pagination-container {
|
||||
display: flex;
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.posts__next-link,
|
||||
|
||||
@ -20,12 +20,14 @@
|
||||
</section>
|
||||
|
||||
<section class="posts__pagination">
|
||||
{{ if .Paginator.HasNext }}
|
||||
<a class="posts__next-link" href="{{.Paginator.Next.URL}}">← Older</a>
|
||||
{{ end }}
|
||||
<div class="container posts__pagination-container">
|
||||
{{ if .Paginator.HasNext }}
|
||||
<a class="posts__next-link" href="{{.Paginator.Next.URL}}">← Older</a>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<a class="posts__prev-link" href="{{.Paginator.Prev.URL}}">Newer →</a>
|
||||
{{ end }}
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<a class="posts__prev-link" href="{{.Paginator.Prev.URL}}">Newer →</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user