Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dataCobra/hugo-vitae.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordataCobra <datacobra@thinkbot.de>2021-03-06 16:22:26 +0300
committerdataCobra <datacobra@thinkbot.de>2021-03-06 16:22:26 +0300
commitf9d6bf53f677b06a1b4c154cdf0663cb34303446 (patch)
tree6c6e58b5e41e9d0fe285c964b5ee51fd75b35c51 /layouts
parent09b7be504b3265b5f756a25f1e16c3ce0360e47f (diff)
Refactoring of paginator.html
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/paginator.html16
1 files changed, 4 insertions, 12 deletions
diff --git a/layouts/partials/paginator.html b/layouts/partials/paginator.html
index 3865155..94501b1 100644
--- a/layouts/partials/paginator.html
+++ b/layouts/partials/paginator.html
@@ -1,15 +1,7 @@
{{ $pag := $.Paginator }}
-{{ if gt $pag.TotalPages 1 }}
+{{- if gt $pag.TotalPages 1 }}
<ul class="pagination">
- <li class="page-item page-prev">
- {{ if $pag.HasPrev }}
- <a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }} class="page-link" aria-label="Previous"><span aria-hidden="true">{{ i18n "prevpage" }}</span></a>
- {{ end }}
- </li>
- <li>
- {{ if $pag.HasNext }}
- <a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">{{ i18n "nextpage" }}</span></a>
- {{ end }}
- </li>
+<li class="page-item page-prev">{{ if $pag.HasPrev }}<a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }} class="page-link" aria-label="Previous"><span aria-hidden="true">{{ i18n "prevpage" }}</span></a>{{ end }}</li>
+<li>{{ if $pag.HasNext }}<a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">{{ i18n "nextpage" }}</span></a>{{ end }}</li>
</ul>
-{{ end }}
+{{- end }}