Switch themes to minimo

This commit is contained in:
Dave Gallant
2021-09-06 11:55:05 -04:00
parent 75f9797c91
commit 4ff7aec7c1
302 changed files with 17841 additions and 607 deletions

View File

@@ -0,0 +1,46 @@
{{ if gt .Paginator.TotalPages 1 }}
<nav id='pagination'>
<div class='page-links'>
{{ with .Paginator.Prev }}
<a class='page-link prev' href='{{ .URL }}'>
{{- partial "svg/icon" "prev" -}}
<span class='screen-reader-text'>{{ i18n "previousPage" }}</span>
</a>
{{ end }}
{{- $.Scratch.Set "hasPrevDots" false -}}
{{- $.Scratch.Set "hasNextDots" false -}}
{{ range .Paginator.Pagers }}
{{ if ( eq . $.Paginator ) }}
<span aria-current='page' class='page-link current'>
<span class='screen-reader-text'>{{ i18n "currentPage" }}: </span>
{{- .PageNumber -}}
</span>
{{ else if or ( or ( eq . $.Paginator.First ) ( eq . $.Paginator.Prev ) ) ( or ( eq . $.Paginator.Next ) ( eq . $.Paginator.Last ) ) }}
<a class='page-link' href='{{ .URL }}'>
<span class='screen-reader-text'>{{ i18n "page" }}: </span>
{{- .PageNumber -}}
</a>
{{ else }}
{{ if and ( not ( $.Scratch.Get "hasPrevDots" ) ) ( lt .PageNumber $.Paginator.PageNumber ) }}
{{- $.Scratch.Set "hasPrevDots" true -}}
<span class='page-link dots'>&hellip;</span>
{{ else if and ( not ( $.Scratch.Get "hasNextDots" ) ) ( gt .PageNumber $.Paginator.PageNumber ) }}
{{- $.Scratch.Set "hasNextDots" true -}}
<span class='page-link dots'>&hellip;</span>
{{ end }}
{{ end }}
{{ end }}
{{ with .Paginator.Next }}
<a class='page-link next' href='{{ .URL }}'>
<span class='screen-reader-text'>{{ i18n "nextPage" }}</span>
{{- partial "svg/icon" "next" -}}
</a>
{{ end }}
</div>
</nav>
{{ end }}