Rewrote the whole website to get rid on a heavy theme

This commit is contained in:
Julien Dessaux 2021-03-11 18:53:14 +01:00
parent 3ea54810ad
commit 60d3abc6ec
122 changed files with 346 additions and 2558 deletions

View file

@ -0,0 +1,20 @@
{{- $pag := $.Paginator -}}
{{- if gt $pag.TotalPages 1 -}}
<ul class="pagination">
{{ with $pag.First -}}
<li{{ if not $pag.HasPrev }} class="pagination-disabled"{{ end }}>
<a {{ if $pag.HasPrev }}href="{{ .URL }}"{{ end }} aria-label="First"><span aria-hidden="true">&laquo;</span></a>
</li>
{{ end -}}
{{- range $pag.Pagers -}}
<li{{ if eq . $pag }} class="pagination-active"{{ end }}>
<a href="{{ .URL }}">{{ .PageNumber }}</a>
</li>
{{- end }}
{{- with $pag.Last }}
<li{{ if not $pag.HasNext }} class="pagination-disabled"{{ end }}>
<a {{ if $pag.HasNext }}href="{{ .URL }}"{{ end }} aria-label="Last"><span aria-hidden="true">&raquo;</span></a>
</li>
{{- end }}
</ul>
{{ end }}