Styling, edits

This commit is contained in:
Madison Scott-Clary
2021-09-03 18:14:04 -07:00
parent 6933f33475
commit f4d2de699e
2 changed files with 6 additions and 0 deletions

View File

@ -2,9 +2,11 @@
{{ if gt $paginator.TotalPages 1 }} {{ if gt $paginator.TotalPages 1 }}
<nav class="paginator" aria-label="page"> <nav class="paginator" aria-label="page">
<ul class="pagination pagination-sm"> <ul class="pagination pagination-sm">
{{ if $paginator.HasPrev }}
<li class="page-item{{ if not $paginator.HasPrev }} disabled{{ end }}"> <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> <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> </li>
{{ end}}
{{ if lt $paginator.TotalPages 10 }} {{ if lt $paginator.TotalPages 10 }}
{{ range $paginator.Pagers }} {{ range $paginator.Pagers }}
<li class="page-item{{ if eq . $paginator}} active{{ end }}"> <li class="page-item{{ if eq . $paginator}} active{{ end }}">
@ -14,9 +16,11 @@
{{ else }} {{ else }}
<li class="page-item too-many">Entry {{ $paginator.PageNumber }} of {{ $paginator.TotalPages }}</li> <li class="page-item too-many">Entry {{ $paginator.PageNumber }} of {{ $paginator.TotalPages }}</li>
{{ end }} {{ end }}
{{ if $paginator.HasNext }}
<li class="page-item{{ if not $paginator.HasNext }} disabled{{ end }}"> <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> <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> </li>
{{ end }}
</ul> </ul>
</nav> </nav>
{{ end }} {{ end }}

View File

@ -43,6 +43,8 @@ h1 small {
font-style: italic; font-style: italic;
} }
ul.pagination { ul.pagination {
margin: 1rem 0;
padding: 0;
list-style-type: none; list-style-type: none;
font-family: "Tom's New Roman", serif; font-family: "Tom's New Roman", serif;
text-align: center; text-align: center;