add table render for artists
This commit is contained in:
parent
af606d3188
commit
63691f78dd
1 changed files with 20 additions and 0 deletions
20
layouts/events/_markup/render-table.html
Normal file
20
layouts/events/_markup/render-table.html
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
<div class="artists-table">
|
||||||
|
{{ range .TBody }}
|
||||||
|
{{ $name := ((index . 0).Text | safeHTML ) }}
|
||||||
|
{{ $description := ((index . 1).Text | safeHTML ) }}
|
||||||
|
{{ $link := ((index . 2).Text | safeURL ) }}
|
||||||
|
|
||||||
|
|
||||||
|
<div class="artist-entry">
|
||||||
|
{{ if ne $link "" }}
|
||||||
|
<img
|
||||||
|
class="artist-image"
|
||||||
|
src="{{ $link }}"
|
||||||
|
alt="Photo de {{ $name }}"
|
||||||
|
/>
|
||||||
|
{{ end }}
|
||||||
|
<h3 class="artist-name">{{ $name }}</h3>
|
||||||
|
<p class="artist-description">{{ $description }}</p>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue