-
Notifications
You must be signed in to change notification settings - Fork 0
/
gallery.ejs
41 lines (30 loc) · 1.11 KB
/
gallery.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
```{=html}
<% for (const item of items) { %>
<h2><%- item.category %></h2>
<p><%- item.description %></p>
<div class="list grid" style="column-gap: 10px;">
<% for (const tile of item.tiles) { %>
<div class="card border-2 rounded-3 g-col-12 g-col-sm-6 g-col-md-4 mb-2" <%= metadataAttrs(tile) %>>
<a href="<%- tile.href %>">
<img src="<%- tile.thumbnail %>" alt="<%- tile.description %>" class="card-img-top"/>
</a>
<% if (tile.publicationdate) { %>
<b class="listing-publicationdate"><%= tile.publicationdate %></b>
<% } %>
<div class="card-header py-1 px-2 border-bottom border-1 bg-light">
<small class="card-text inline-block">
<a href="<%- tile.href %>" class="listing-title"><%= tile.title %></a>
<% if (tile.code) { %>
<a href="<%- tile.code %>" title="View source code"
class="source-code card-text float-end inline-block">
<i class="bi-code-slash"></i>
</a>
<% } %>
<span class="text-muted listing-subtitle"><%= tile.subtitle %></span>
</small>
</div>
</div>
<% } %>
</div>
<% } %>
```