-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom.ejs
64 lines (41 loc) · 1.69 KB
/
custom.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
```{=html}
<%/* so category filtering works */%>
<ul class="list" style="list-style-type:none">
<%/* create custom listing */%>
<% for (const item of items) { %>
<li <%= metadataAttrs(item) %>>
<div id="container" style="height:100%; width:100%; overflow: hidden; display: flex; margin-left: -35px; margin-bottom: 30px;">
<div id="itemImage" style="width:150px; height:150px; background-size:contain; background-position:center; margin: 0px 30px 15px 0px;">
<a href="<%- item.url %>" class="thumbnail">
<img src="<%- item.image %>" width="150" height="150" />
</a>
</div>
<div id="itemDetails" style="width:100%;">
<div id="itemHeader" style="justify-content: space-between; line-height:30px; margin-bottom:3px; align-items:flex-start;">
<div id="itemTitle" style="display:block; width:95%">
<p style="font-size:20px">
<a href="<%- item.url %>"><%= item.title %>
</a>
</p>
</div>
<div class="container" style="display: flex; height: 100px;">
<div style="width: 50%;">
<%= item['source'] %>
<p style="font-size:14px"><%= item['date'] %></p>
</div>
<div style="flex-grow: 1;">
Categories:
<% for (const category of item.categories) { %>
<div class="listing-category" style="font-size:14px" onclick="window.quartoListingCategory('<%=category%>'); return false;">
<%= category %>
</div>
<% } %>
</div>
</div>
</div>
</div>
</div>
</li>
<% } %>
</ul>
```