Skip to content

Commit ed40177

Browse files
committed
style: format the listing field link template
1 parent 98d9b64 commit ed40177

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/project/types/website/listing/website-listing-template.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,9 @@ export function reshapeListing(
421421
const value = val || item[field] || " ";
422422
const path = item.path;
423423
if (path && value !== undefined && fieldLinks.includes(field)) {
424-
return `<a href="${encodeAttributeValue(path)}"${targetAttrs(item)} class="${field}${
425-
clz ? ` ${clz}` : ""
426-
}">${value}</a>`;
424+
return `<a href="${encodeAttributeValue(path)}"${
425+
targetAttrs(item)
426+
} class="${field}${clz ? ` ${clz}` : ""}">${value}</a>`;
427427
} else {
428428
if (clz) {
429429
return `<span class="${clz}">${value}</span>`;

0 commit comments

Comments
 (0)