-
Notifications
You must be signed in to change notification settings - Fork 3
/
custom_listing_resources.ejs
29 lines (29 loc) · 1.17 KB
/
custom_listing_resources.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
```{=html}
<div class="archive list">
<% for (const item of items) { %>
<div class="quarto-post image-right" <%= metadataAttrs(item) %>>
<div class="body">
<h3 class="no-anchor listing-title"><a href="<%- item.url %>" class="no-external"><%= item.title %></a></h3>
<div class="listing-subtitle"><a href="<%- item.url %>" class="no-external"><%= item.subtitle %></a></div>
</div>
<div class="metadata">
<div class="ratings">
<span class="rating listing-upvotes rating-upvotes-<%= item.upvotes %> ">👍 <%= item.upvotes %></span>
</div>
<% if (item.categories) { %>
<span class="listing-categories">
<% for (const category of item.categories) { %>
<span class="listing-category" onclick="window.quartoListingCategory('<%=category%>'); return false;"><%= category %></span>
<% } %>
</span>
<% } %>
<span class="archive-item-date">
<span class="listing-date">
<%= item.date %>
</span>
</span>
</div>
</div>
<% } %>
</div>
```