Add styling on links

This commit is contained in:
2024-08-04 17:41:39 +02:00
commit d35c46078f
533 changed files with 1299486 additions and 0 deletions
.gitattributes.gitignore
archetypes
assets
content
hugo.toml
static/assets
ansible
as8298
asr9006
asr920
bucketlist
clearfog
colo
coloclue-ipng
coloclue-loadtest
coloclue-vpp
css
debian-vpp
dwdm.png
fiber7-litexchange
fiber7-x
fitlet2
freebsd-vpp
freeix
fs-switch
geofeed
gowin-n305
ipng-frontends
lab
logo
main.scss
mastodon
minima-social-icons.svg
mlxsw
mpls-core
nat64
netgate-6100
network
oem-switch
pcengines-apu6
pdf
pdu19.png
pixelfed
r86s
sixxs-sunset
smtp
supermicro.png
syslog-telegram
vpp-babel
vpp-ixp-gateway
vpp-mpls
vpp-ospf
vpp-papi
vpp-proto
vpp-stats
vpp
vppcfg
themes/hugo-theme-notrack

@ -0,0 +1,43 @@
{{ $pag := $.Paginator }}
{{ if gt $pag.TotalPages 1 }}
<ul class="pagination">
{{ with $pag.First }}
<li class="page-item">
<a href="{{ .URL }}" class="page-link" aria-label="First"><span
aria-hidden="true">&laquo;</span></a>
</li>
{{ end }}
<li class="page-item{{ if not $pag.HasPrev }} disabled{{ end }}">
<a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }}
class="page-link" aria-label="Previous"><span aria-hidden="true">&lsaquo;</span></a>
</li>
{{ $ellipsed := false }}
{{ $shouldEllipse := false }}
{{ range $pag.Pagers }}
{{ $right := sub .TotalPages .PageNumber }}
{{ $showNumber := or (le .PageNumber 3) (eq $right 0) }}
{{ $showNumber := or $showNumber (and (gt .PageNumber (sub $pag.PageNumber 2)) (lt .PageNumber (add $pag.PageNumber 2))) }}
{{ if $showNumber }}
{{ $ellipsed = false }}
{{ $shouldEllipse = false }}
{{ else }}
{{ $shouldEllipse = not $ellipsed }}
{{ $ellipsed = true }}
{{ end }}
{{ if $showNumber }}
<li class="page-item{{ if eq . $pag }} active{{ end }}"><a class="page-link" href="{{ .URL }}">{{ .PageNumber }}</a></li>
{{ else if $shouldEllipse }}
<li class="page-item disabled"><span aria-hidden="true">&nbsp;&hellip;&nbsp;</span></li>
{{ end }}
{{ end }}
<li class="page-item{{ if not $pag.HasNext }} disabled{{ end }}">
<a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }}
class="page-link" aria-label="Next"><span aria-hidden="true">&rsaquo;</span></a>
</li>
{{ with $pag.Last }}
<li class="page-item">
<a href="{{ .URL }}" class="page-link" aria-label="Last"><span aria-hidden="true">&raquo;</span></a>
</li>
{{ end }}
</ul>
{{ end }}