@@ -32,7 +32,7 @@ return value;
3232let value = readField(item, field);
3333if (value !== undefined) {
3434print(` <div class="metadata-value listing-${field}">${listing.utilities.outputLink(item, field, value)}</div> ` );
35- }
35+ }
3636}
3737%>
3838
@@ -41,7 +41,7 @@ print(`<div class="metadata-value listing-${field}">${listing.utilities.outputLi
4141<% if (fields.includes('image')) { %>
4242
4343``` {=html}
44- <div class="thumbnail"><a href="<%- item.path %>" class="no-external">
44+ <div class="thumbnail"><a href="<%- item.path %>" <%= item.target ? `target="${item.target}"` : "" %> class="no-external">
4545<% if (item.image) { %>
4646<%= listing.utilities.img(itemNumber, item.image, "thumbnail-image", item['image-alt'], item['image-lazy-loading'] ?? listing['image-lazy-loading']) %>
4747<% } else { %>
@@ -55,9 +55,10 @@ print(`<div class="metadata-value listing-${field}">${listing.utilities.outputLi
5555::: {.body}
5656
5757<% if (fields.includes('title')) { %>
58- <h3 class =" no-anchor listing-title " ><a href =" <%- item.path %> " class =" no-external " ><%= item.title %></a ></h3 >
58+
59+ <h3 class =" no-anchor listing-title " ><a href =" <%- item.path %> " <% = item.target ? `target =" ${item.target} " ` : "" % > class="no-external"><%= item.title %></a ></h3 >
5960<% if (fields.includes('subtitle')) { %>
60- <div class =" listing-subtitle " ><a href =" <%- item.path %> " class =" no-external " ><%= item.subtitle %></a ></div >
61+ <div class =" listing-subtitle " ><a href =" <%- item.path %> " <% = item.target ? `target = " ${item.target} " ` : "" % > class="no-external"><%= item.subtitle %></a ></div >
6162<% } %>
6263<% } %>
6364
@@ -76,7 +77,7 @@ print(`<div class="metadata-value listing-${field}">${listing.utilities.outputLi
7677<% if (fields.includes('description')) { %>
7778
7879``` {=html}
79- <div class="delink listing-description"><a href="<%- item.path %>" class="no-external">
80+ <div class="delink listing-description"><a href="<%- item.path %>" <%= item.target ? `target="${item.target}"` : "" %> class="no-external">
8081```
8182
8283<%= item.description %>
@@ -92,14 +93,16 @@ print(`<div class="metadata-value listing-${field}">${listing.utilities.outputLi
9293::: {.metadata}
9394
9495``` {=html}
95- <a href="<%- item.path %>" class="no-external">
96+ <a href="<%- item.path %>" <%= item.target ? `target="${item.target}"` : "" %> class="no-external">
9697```
9798
9899<% if (fields.includes('date') && item.date) { %>
100+
99101<div class =" listing-date " ><%= item.date %></div >
100102<% } %>
101103
102104<% if (fields.includes('author') && item.author) { %>
105+
103106<div class =" listing-author " ><%= item.author %></div >
104107<% } %>
105108
0 commit comments