« get me outta code hell

implement flash act pages, rework flash sidebar layout - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/linkFlashAct.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-10-11 14:32:28 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-10-11 14:44:34 -0300
commit3a871cf43a11b87392d26320c736b516925da684 (patch)
tree113eb17e10d4f542366578111bdaa169985911be /src/content/dependencies/linkFlashAct.js
parent3cd6f9edc58171e33ed6af565db84113e2488f25 (diff)
implement flash act pages, rework flash sidebar layout
Diffstat (limited to 'src/content/dependencies/linkFlashAct.js')
-rw-r--r--src/content/dependencies/linkFlashAct.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/content/dependencies/linkFlashAct.js b/src/content/dependencies/linkFlashAct.js
new file mode 100644
index 00000000..fbb819ed
--- /dev/null
+++ b/src/content/dependencies/linkFlashAct.js
@@ -0,0 +1,14 @@
+export default {
+  contentDependencies: ['linkThing'],
+  extraDependencies: ['html'],
+
+  relations: (relation, flashAct) =>
+    ({link: relation('linkThing', 'localized.flashActGallery', flashAct)}),
+
+  data: (flashAct) =>
+    ({name: flashAct.name}),
+
+  generate: (data, relations, {html}) =>
+    relations.link
+      .slot('content', new html.Tag(null, null, data.name)),
+};