blob: 9e941b68fd2b003208c7e83b52e002bc411bcd8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{% import "git.sr.ht/~gabrielgio/img/pkg/database/repository" %}
{% func Mosaic(medias []*repository.Media, preloadAttr string) %}
<div class="gallary_container">
{% for _, media := range medias %}
<a href="/detail?path_hash={%s media.PathHash %}">
<figure class="image_container">
<img src="/media/thumbnail?path_hash={%s media.PathHash %}" >
</figure>
</a>
{% endfor %}
</div>
{% endfunc %}
|