Skip to content

Commit

Permalink
chore: update the pagination partial
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed May 28, 2023
1 parent a1ae0f6 commit deaee91
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions layouts/partials/hb/modules/blog/post/pagination.html
Original file line number Diff line number Diff line change
@@ -1,18 +1 @@
{{- if or .HasPrev .HasNext }}
<div class="hb-blog-pagination hb-module row">
<div class="col-6">
{{- if .Prev }}
<a class="btn btn-sm btn-outline-secondary" href="{{ .Prev.URL }}">
{{- i18n "pagination_prev" -}}
</a>
{{- end }}
</div>
<div class="col-6 d-flex justify-content-end">
{{- if .HasNext }}
<a class="btn btn-sm btn-outline-secondary" href="{{ .Next.URL }}">
{{- i18n "pagination_next" -}}
</a>
{{- end }}
</div>
</div>
{{- end -}}
{{ partial "hb/modules/pagination/index" . }}

0 comments on commit deaee91

Please sign in to comment.