« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/content/dependencies/linkThing.js6
-rw-r--r--src/content/dependencies/transformContent.js5
2 files changed, 10 insertions, 1 deletions
diff --git a/src/content/dependencies/linkThing.js b/src/content/dependencies/linkThing.js
index 64b3ddcd..100b3e89 100644
--- a/src/content/dependencies/linkThing.js
+++ b/src/content/dependencies/linkThing.js
@@ -19,9 +19,13 @@ export default {
   data: (pathKey, thing) => ({
     name: thing.name,
     nameShort: thing.nameShort ?? thing.shortName,
-    nameDetail: thing.nameDetail,
     nameText: thing.nameText,
 
+    nameDetail:
+      thing.nameDetail ??
+      thing.nameDetailAcrossWiki ??
+      null,
+
     path:
       (pathKey
         ? [pathKey, thing.directory]
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js
index 4079f0f0..243ab502 100644
--- a/src/content/dependencies/transformContent.js
+++ b/src/content/dependencies/transformContent.js
@@ -635,6 +635,11 @@ export default {
               link.setSlot('tooltipStyle', 'none');
             }
 
+            // TODO: The same, the same.
+            if (!errors(() => link.getSlotDescription('showNameDetail'))) {
+              link.setSlot('showNameDetail', 'inside');
+            }
+
             let doTheAbsorbyThing = false;
 
             // TODO: This is just silly.