Styling, edits
This commit is contained in:
@ -2,9 +2,11 @@
|
||||
{{ if gt $paginator.TotalPages 1 }}
|
||||
<nav class="paginator" aria-label="page">
|
||||
<ul class="pagination pagination-sm">
|
||||
{{ if $paginator.HasPrev }}
|
||||
<li class="page-item{{ if not $paginator.HasPrev }} disabled{{ end }}">
|
||||
<a class="page-link"{{ if $paginator.HasPrev }} href="{{ $paginator.Prev.URL }}"{{ end }}><svg width="20" height="16"><path fill="none" stroke="currentColor" stroke-width="3" d="M 20 0 l -10 8 l 10 8" /><circle cx="19" cy="8" r="2" stroke="none" fill="currentColor" /></svg></a>
|
||||
</li>
|
||||
{{ end}}
|
||||
{{ if lt $paginator.TotalPages 10 }}
|
||||
{{ range $paginator.Pagers }}
|
||||
<li class="page-item{{ if eq . $paginator}} active{{ end }}">
|
||||
@ -14,9 +16,11 @@
|
||||
{{ else }}
|
||||
<li class="page-item too-many">Entry {{ $paginator.PageNumber }} of {{ $paginator.TotalPages }}</li>
|
||||
{{ end }}
|
||||
{{ if $paginator.HasNext }}
|
||||
<li class="page-item{{ if not $paginator.HasNext }} disabled{{ end }}">
|
||||
<a class="page-link"{{ if $paginator.HasNext }} href="{{ $paginator.Next.URL }}"{{ end }}><svg width="20" height="16"><path fill="none" stroke="currentColor" stroke-width="3" d="M 0 0 l 10 8 l -10 8" /><circle cx="1" cy="8" r="2" stroke="none" fill="currentColor" /></svg></a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
{{ end }}
|
||||
|
||||
@ -43,6 +43,8 @@ h1 small {
|
||||
font-style: italic;
|
||||
}
|
||||
ul.pagination {
|
||||
margin: 1rem 0;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
font-family: "Tom's New Roman", serif;
|
||||
text-align: center;
|
||||
|
||||
Reference in New Issue
Block a user