forked from mirrors/hugo-tufte
Pagination centered?
This commit is contained in:
parent
91c8254119
commit
3f7a67f386
3 changed files with 7 additions and 5 deletions
|
@ -121,8 +121,9 @@ table.lntable {
|
||||||
|
|
||||||
// Styling for the page numbers/ buttons on the bottom of the home page
|
// Styling for the page numbers/ buttons on the bottom of the home page
|
||||||
|
|
||||||
.previous-page, .next-page, .pagination-indicator {
|
.pagination {
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------------ */
|
||||||
|
|
|
@ -396,10 +396,7 @@ div.booktabs-wrapper {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer,
|
footer {
|
||||||
previous-page,
|
|
||||||
pagination-indicator,
|
|
||||||
next-page {
|
|
||||||
width: 50%;
|
width: 50%;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,8 @@
|
||||||
{{ if and (.Paginator) (gt .Paginator.TotalPages 1) }}
|
{{ if and (.Paginator) (gt .Paginator.TotalPages 1) }}
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
|
<div id="pagination" class="pagination">
|
||||||
|
|
||||||
<span class="previous-page">
|
<span class="previous-page">
|
||||||
{{ if .Paginator.HasPrev }}
|
{{ if .Paginator.HasPrev }}
|
||||||
<a class="link-reverse" href="{{.Paginator.Prev.URL}}">«</a>
|
<a class="link-reverse" href="{{.Paginator.Prev.URL}}">«</a>
|
||||||
|
@ -49,6 +51,8 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
|
|
Loading…
Reference in a new issue