Skip to content

Commit 08bfc2b

Browse files
committed
feat(exeter): add label to gallery.ejs for exeter projects
1 parent 2cd0036 commit 08bfc2b

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

pages/gallery.ejs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ URL: https://github.com/quarto-dev/quarto-web/blob/main/docs/gallery/gallery.ejs
1515
1616
<% for (const tile of item.tiles) { %>
1717
<div class="card border-2 rounded-3 g-col-12 g-col-sm-6 g-col-md-4 mb-2" <%= metadataAttrs(tile) %>>
18+
19+
<!-- Title and code -->
1820
<div class="card-header py-1 px-2 border-bottom border-1 bg-light">
1921
<small class="card-text inline-block">
2022
<a href="<%- tile.href %>" class="listing-title"><%= tile.title %></a>
@@ -26,16 +28,26 @@ URL: https://github.com/quarto-dev/quarto-web/blob/main/docs/gallery/gallery.ejs
2628
<% } %>
2729
</small>
2830
</div>
31+
32+
<!-- Category -->
33+
<% if (tile.categories) { %>
34+
<span class="badge bg-secondary listing-categories" style="background-color: #71bd94 !important; color: #1f393a !important;">
35+
<%= Array.isArray(tile.categories) ? tile.categories.join(", ") : tile.categories %>
36+
</span>
37+
<% } %>
38+
39+
<!-- Thumbnail -->
2940
<a href="<%- tile.href %>">
3041
<img src="<%- tile.thumbnail %>" alt="<%- tile.description %>" class="card-img-top"/>
3142
</a>
3243
44+
<!-- Subtitle -->
3345
<small>
3446
<div class="card-body py-2">
3547
<span class="text-muted listing-subtitle d-block"><%= tile.subtitle %></span>
3648
</div>
3749
</small>
38-
50+
3951
</div>
4052
<% } %>
4153

0 commit comments

Comments
 (0)