fix: make nav consistent

This commit is contained in:
Henrique Dias 2023-06-02 08:30:28 +02:00
parent 037ec5bd2a
commit 3895f123fb
No known key found for this signature in database

View File

@ -15,15 +15,15 @@
<nav> <nav>
<a href="../1/" aria-label="First" role="button"><span aria-hidden="true">|&lt;</span></a> <a href="../1/" aria-label="First" role="button"><span aria-hidden="true">|&lt;</span></a>
{{- if gt .Num 1 }} {{- if gt .Num 1 }}
<a href="../{{ minus .Num 1 }}/" aria-label="Previous" role="button"><span aria-hidden="true"> Prev</span></a> <a href="../{{ minus .Num 1 }}/" aria-label="Previous" role="button"><span aria-hidden="true">&lt; Prev</span></a>
{{- else }} {{- else }}
<a aria-disabled="true" aria-label="Previous" role="button" tabindex="-1"><span aria-hidden="true"> Prev</span></a> <a aria-disabled="true" aria-label="Previous" role="button" tabindex="-1"><span aria-hidden="true">&lt; Prev</span></a>
{{- end }} {{- end }}
<a role="button" href="../">Home</a> <a role="button" href="../">Home</a>
{{- if lt .Num .Latest }} {{- if lt .Num .Latest }}
<a href="../{{ plus .Num 1 }}/" aria-label="Next" role="button"><span aria-hidden="true">Next </span></a> <a href="../{{ plus .Num 1 }}/" aria-label="Next" role="button"><span aria-hidden="true">Next &gt;</span></a>
{{- else }} {{- else }}
<a aria-disabled="true" aria-label="Next" role="button" tabindex="-1"><span aria-hidden="true">Next </span></a> <a aria-disabled="true" aria-label="Next" role="button" tabindex="-1"><span aria-hidden="true">Next &gt;</span></a>
{{- end }} {{- end }}
<a href="../{{ .Latest }}/" aria-label="Last" role="button"><span aria-hidden="true">&gt;|</span></a> <a href="../{{ .Latest }}/" aria-label="Last" role="button"><span aria-hidden="true">&gt;|</span></a>
</nav> </nav>