feat(image): add image lightgallery

This commit is contained in:
Dillon
2020-02-24 17:00:39 +08:00
parent fbfcbaebca
commit 72a2e9bdcf
50 changed files with 478 additions and 353 deletions

View File

@@ -1,6 +1,6 @@
{{- if gt $.Paginator.TotalPages 1 -}}
{{- if gt .Paginator.TotalPages 1 -}}
<ul class="pagination">
{{- $.Scratch.Set "paginator.ellipsed" false -}}
{{- .Scratch.Set "paginator.ellipsed" false -}}
{{- range $.Paginator.Pagers -}}
{{- $right := sub .TotalPages .PageNumber -}}
{{- $showNumber := or (le .PageNumber 1) (eq $right 0) -}}