-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathres.ejs
39 lines (36 loc) · 1002 Bytes
/
res.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
```{=html}
<ul class="reslist list">
<% for (const item of items) { %>
<li <%= metadataAttrs(item) %>>
<div>
<a href="<%- item.url %>"><img src="<%- item.image %>"></a>
</div>
<div>
<% if (item.url) { %>
<h3><a href="<%- item.url %>"><%= item.title %></a></h3>
<% } else { %>
<h3><%= item.title %></h3>
<% } %>
<p><%= item.description %></p>
<% if (item.author) { %>
Author: <%- item.author %>
<% } %>
<% if (item.contributors) { %>
<br>Contributors: <%- item.contributors %>
<% } %>
<% if (item.contact) { %>
<br>Contact:
<% if (item.contact.url) { %>
<a href="<%- item.contact.url %>"><%- item.contact.name %></a>
<% } else { %>
<%- item.contact %>
<% } %>
<% } %>
<% if (item.doi) { %>
<br>DOI: <a href="https://doi.org/<%- item.doi %>"><%- item.doi %></a>
<% } %>
</div>
</li>
<% } %>
</ul>
```