Text zu jedem Bild nach der Originalseite definiert. Erscheint bei Maus hover
This commit is contained in:
@@ -15,8 +15,14 @@
|
||||
<button type="button" class="slider-arrow slider-prev" aria-label="Zurück">❮</button>
|
||||
<div class="slider-track">
|
||||
{{ range $i, $img := . }}
|
||||
<a href="{{ $img }}" target="_blank" rel="noopener" class="slider-slide lightbox-trigger">
|
||||
<img src="{{ $img }}" alt="{{ $.Title }} – Foto {{ add $i 1 }}" loading="lazy">
|
||||
{{ $src := $img }}
|
||||
{{ $titel := printf "%s – Foto %d" $.Title (add $i 1) }}
|
||||
{{ if reflect.IsMap $img }}
|
||||
{{ $src = $img.bild }}
|
||||
{{ with $img.titel }}{{ $titel = . }}{{ end }}
|
||||
{{ end }}
|
||||
<a href="{{ $src }}" target="_blank" rel="noopener" class="slider-slide lightbox-trigger">
|
||||
<img src="{{ $src }}" alt="{{ $titel }}" title="{{ $titel }}" loading="lazy">
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user