From 435af33e7e33ff664f6b01d2e02486de1346f20a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 8 Sep 2025 19:27:06 -0300 Subject: content: transformContent: substitute apply() --- src/content/dependencies/linkContribution.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/content/dependencies/linkContribution.js') diff --git a/src/content/dependencies/linkContribution.js b/src/content/dependencies/linkContribution.js index 1db0373b..4ccaf7b4 100644 --- a/src/content/dependencies/linkContribution.js +++ b/src/content/dependencies/linkContribution.js @@ -24,6 +24,8 @@ export default { }), slots: { + content: {type: 'html', mutable: false}, + showAnnotation: {type: 'boolean', default: false}, showExternalLinks: {type: 'boolean', default: false}, showChronology: {type: 'boolean', default: false}, @@ -46,6 +48,10 @@ export default { language.encapsulate('misc.artistLink', workingCapsule => { const workingOptions = {}; + if (!html.isBlank(slots.content)) { + relations.artistLink.setSlot('content', slots.content); + } + // Filling slots early is necessary to actually give the tooltip // content. Otherwise, the coming-up html.isBlank() always reports // the tooltip as blank! -- cgit 1.3.0-6-gf8a5