« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/linkThing.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/content/dependencies/linkThing.js b/src/content/dependencies/linkThing.js
index 1e648ee6..4ccdf58d 100644
--- a/src/content/dependencies/linkThing.js
+++ b/src/content/dependencies/linkThing.js
@@ -45,6 +45,8 @@ export default {
           default: true,
         },
 
+        anchor: {type: 'boolean', default: false},
+
         attributes: relations.linkTemplate.getSlotDescription('attributes'),
         hash: relations.linkTemplate.getSlotDescription('hash'),
       },
@@ -77,7 +79,8 @@ export default {
 
         return relations.linkTemplate
           .slots({
-            path,
+            path: slots.anchor ? [] : path,
+            href: slots.anchor ? '' : null,
             content,
             color,
             tooltip,