Skip to content

Commit 64d2861

Browse files
committed
fix: link-external-newwindow: true not respected by default listing
Fixes #9468
1 parent 1ec0115 commit 64d2861

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/resources/projects/website/listing/item-default.ejs.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ print(`<div class="metadata-value listing-${field}">${listing.utilities.outputLi
3939
<div class="quarto-post image-<%= imageAlign %>" <%= listing.utilities.metadataAttrs(item) %>>
4040
<% if (fields.includes('image')) { %>
4141
<div class="thumbnail">
42-
<a href="<%- item.path %>" class="no-external">
42+
<a href="<%- item.path %>">
4343
<% if (item.image) { %>
4444
<%= listing.utilities.img(itemNumber, item.image, "thumbnail-image", item['image-alt'], item['image-lazy-loading'] ?? listing['image-lazy-loading']) %>
4545
<% } else { %>
@@ -50,8 +50,8 @@ print(`<div class="metadata-value listing-${field}">${listing.utilities.outputLi
5050
<% } %>
5151
<div class="body">
5252
<% if (fields.includes('title')) { %>
53-
<h3 class="no-anchor listing-title"><a href="<%- item.path %>" class="no-external"><%= item.title %></a></h3>
54-
<div class="listing-subtitle"><a href="<%- item.path %>" class="no-external"><%= item.subtitle %></a></div>
53+
<h3 class="no-anchor listing-title"><a href="<%- item.path %>"><%= item.title %></a></h3>
54+
<div class="listing-subtitle"><a href="<%- item.path %>"><%= item.subtitle %></a></div>
5555
<% } %>
5656
<% if (fields.includes('categories') && item.categories) { %>
5757
<div class="listing-categories">
@@ -61,10 +61,10 @@ print(`<div class="metadata-value listing-${field}">${listing.utilities.outputLi
6161
</div>
6262
<% } %>
6363
<% if (fields.includes('description')) { %>
64-
<div class="delink listing-description"><a href="<%- item.path %>" class="no-external"><%= item.description %></a></div>
64+
<div class="delink listing-description"><a href="<%- item.path %>"><%= item.description %></a></div>
6565
<% } %>
6666
</div>
67-
<div class="metadata"><a href="<%- item.path %>" class="no-external">
67+
<div class="metadata"><a href="<%- item.path %>">
6868
<% if (fields.includes('date') && item.date) { %><div class="listing-date">`<%= item.date %>`{=html}</div><% } %>
6969
<% if (fields.includes('author') && item.author) { %><div class="listing-author"><%= item.author %></div><% } %>
7070
<% if (fields.includes('reading-time') && item['reading-time']) { %> <div class="listing-reading-time"><%= item['reading-time'] %></div> <% } %>

0 commit comments

Comments
 (0)