Styling, edits

This commit is contained in:
Madison Scott-Clary
2021-09-03 17:57:39 -07:00
parent b5793d2feb
commit 7b0e7d6ae9
2 changed files with 4 additions and 4 deletions

View File

@ -6,6 +6,6 @@
{{ range $paginator.Pages }}
{{ .Content }}
{{end}}
{{ template "_internal/pagination.html" . }}
{{ partial "pagination.html" . }}
</main>
{{end}}

View File

@ -3,7 +3,7 @@
<nav class="paginator" aria-label="page">
<ul class="pagination pagination-sm">
<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 -6 8 l 6 8" /></svg> Previous</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" /></svg></a>
</li>
{{ if lt $paginator.TotalPages 10 }}
{{ range $paginator.Pagers }}
@ -12,10 +12,10 @@
</li>
{{ end }}
{{ else }}
<li class="page-item too-many">Page {{ $paginator.PageNumber }} of {{ $paginator.TotalPages }}</li>
<li class="page-item too-many">Entry {{ $paginator.PageNumber }} of {{ $paginator.TotalPages }}</li>
{{ end }}
<li class="page-item{{ if not $paginator.HasNext }} disabled{{ end }}">
<a class="page-link"{{ if $paginator.HasNext }} href="{{ $paginator.Next.URL }}"{{ end }}>Next <svg width="20" height="16"><path fill="none" stroke="currentColor" stroke-width="3" d="M 0 0 l 6 8 l -6 8" /></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" /></svg></a>
</li>
</ul>
</nav>