From d5eff08a61afa17dc4ba558975c2a0fd79a6adc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Canouil?= <8896044+mcanouil@users.noreply.github.com> Date: Fri, 14 Mar 2025 21:45:09 +0100 Subject: [PATCH 1/3] feat: Add target attribute to links in listing templates if provided --- .../projects/website/listing/item-default.ejs.md | 15 +++++++++------ .../projects/website/listing/item-grid.ejs.md | 6 +++++- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/resources/projects/website/listing/item-default.ejs.md b/src/resources/projects/website/listing/item-default.ejs.md index 91114a7867f..735efe4b1ed 100644 --- a/src/resources/projects/website/listing/item-default.ejs.md +++ b/src/resources/projects/website/listing/item-default.ejs.md @@ -32,7 +32,7 @@ return value; let value = readField(item, field); if (value !== undefined) { print(`
${listing.utilities.outputLink(item, field, value)}
`); - } +} } %> @@ -41,7 +41,7 @@ print(`
${listing.utilities.outputLi <% if (fields.includes('image')) { %> ```{=html} -
+
class="no-external"> <% if (item.image) { %> <%= listing.utilities.img(itemNumber, item.image, "thumbnail-image", item['image-alt'], item['image-lazy-loading'] ?? listing['image-lazy-loading']) %> <% } else { %> @@ -55,9 +55,10 @@ print(`