From 273e47e24205f09bca04d8b014430fbc09ee5077 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 22 Oct 2025 19:31:21 -0300 Subject: content: linkThing: fix not passing preferShortName through --- src/content/dependencies/linkThing.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/content') diff --git a/src/content/dependencies/linkThing.js b/src/content/dependencies/linkThing.js index 7784afe7..166a857d 100644 --- a/src/content/dependencies/linkThing.js +++ b/src/content/dependencies/linkThing.js @@ -77,14 +77,15 @@ export default { const linkAttributes = slots.attributes; const wrapperAttributes = html.attributes(); + const name = + relations.name.slot('preferShortName', slots.preferShortName); + const showShortName = slots.preferShortName && !data.nameText && data.nameShort && data.nameShort !== data.name; - const name = relations.name; - const showWikiTooltip = (slots.tooltipStyle === 'auto' ? showShortName -- cgit 1.3.0-6-gf8a5