First draft of gallerie
This commit is contained in:
parent
e4374e3f74
commit
e02137718e
14 changed files with 65 additions and 39 deletions
|
|
@ -1,13 +1,16 @@
|
|||
<div class="galerie-table">
|
||||
{{ range .TBody }}
|
||||
{{ $name := ((index . 0).Text | safeHTML ) }}
|
||||
{{ $link := ((index . 1).Text | safeURL ) }}
|
||||
|
||||
|
||||
<div class="galerie-entry">
|
||||
{{ if ne $link "" }}
|
||||
<img class="galerie-image" src="{{ $link }}" alt="{{ $name }}" />
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ range .TBody }}
|
||||
{{ $name := ((index . 0).Text | safeHTML ) }}
|
||||
{{ $link := ((index . 1).Text | safeURL ) }}
|
||||
<div class="galerie-entry">
|
||||
{{ if ne $link "" }}
|
||||
<a href="{{ $link }}"
|
||||
><img
|
||||
class="galerie-image"
|
||||
src="{{ $link }}"
|
||||
alt="{{ $name }}"
|
||||
/></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue