« get me outta code hell

content: linkExternal: breakout - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-06-11 08:43:47 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-06-11 08:43:47 -0300
commit3b610000695c740f3ab17b6444da8e579739b2ee (patch)
tree66d7e5461c5c37c95a17ee3dd27b3c8388f65c65 /src/content/dependencies
parent64251967d7536118e1d8c2a0d2957b9d2e91cf17 (diff)
content: linkExternal: breakout preview
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/linkExternal.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/content/dependencies/linkExternal.js b/src/content/dependencies/linkExternal.js
index 52e43250..5bfad5f4 100644
--- a/src/content/dependencies/linkExternal.js
+++ b/src/content/dependencies/linkExternal.js
@@ -133,6 +133,10 @@ export default {
 
       if (html.isBlank(slots.content)) {
         linkContent = formattedLink;
+      } else if (slots.fromContent) {
+        linkContent =
+          html.metatag('breakout',
+            slots.content);
       } else {
         linkContent = slots.content;
       }