Commit | Line | Data |
---|---|---|
1 | {{- $src := .Get "src" -}} | |
2 | {{- $source := resources.Get $src -}} | |
3 | {{- $alt := .Get "alt" -}} | |
4 | {{- $icon := $source.Resize "400x webp" -}} | |
5 | <a class="gallery-item" href="{{ $source.RelPermalink }}" target="_blank"> | |
6 | <img src="{{ $icon.RelPermalink }}" alt="{{ $alt }}"> | |
7 | </a> |