« 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/dependencies/transformContent.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/transformContent.js')
-rw-r--r--src/content/dependencies/transformContent.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js
index d003c5b8..718b7d14 100644
--- a/src/content/dependencies/transformContent.js
+++ b/src/content/dependencies/transformContent.js
@@ -336,7 +336,7 @@ export default {
                 ? to('media.path', node.src.slice('media/'.length))
                 : node.src);
 
-            const {width, height} = node;
+            const {link, width, height} = node;
 
             if (node.inline) {
               return {
@@ -353,7 +353,7 @@ export default {
               data:
                 image.slots({
                   src,
-                  link: true,
+                  link: link ?? true,
                   width: width ?? null,
                   height: height ?? null,
                   thumb: slots.thumb,