optimise newlines

This commit is contained in:
2024-02-05 15:06:31 +01:00
parent 75d12e09bf
commit 8217f0a6d8
4 changed files with 51 additions and 51 deletions

View File

@@ -1,9 +1,9 @@
{{ $imgs := .imgs }}
{{ $galno := .galno }}
{{- $imgs := .imgs -}}
{{- $galno := .galno -}}
<div class="snap-gallery" style="--columns:{{ default 4 .columns }};--min-width:{{ default "200px" .minwidth }};--gap:10px;--cursor:{{ .cursor }};">
{{ range $i, $img := $imgs }}
{{- range $i, $img := $imgs -}}
<div class="snap-image">
<img src="{{ $img }}" onclick="openLightbox({{ $galno }});openLightboxItem({{ $galno }}, {{ add $i 1 }});">
</div>
{{ end }}
{{- end -}}
</div>