« get me outta code hell

content, css: style <s> nicely in wiki commentary - 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>2025-09-18 08:29:31 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-09-18 08:29:31 -0300
commitf36fa482e6d9c476c477c8271f2aa46c3744134e (patch)
treeb9c5be63a368e84100a6eca7ce1b8aa4a4157385 /src/content/dependencies
parent04258f47265f1ea9e279b2b55912f631348f9ba6 (diff)
content, css: style <s> nicely in wiki commentary preview
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generateCommentaryEntry.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/content/dependencies/generateCommentaryEntry.js b/src/content/dependencies/generateCommentaryEntry.js
index 367de506..57f96215 100644
--- a/src/content/dependencies/generateCommentaryEntry.js
+++ b/src/content/dependencies/generateCommentaryEntry.js
@@ -39,11 +39,16 @@ export default {
       relation('generateCommentaryEntryDate', entry),
   }),
 
+  data: (entry) => ({
+    isWikiEditorCommentary:
+      entry.isWikiEditorCommentary,
+  }),
+
   slots: {
     color: {validate: v => v.isColor},
   },
 
-  generate: (relations, slots, {html, language}) =>
+  generate: (data, relations, slots, {html, language}) =>
     language.encapsulate('misc.artistCommentary.entry', entryCapsule =>
       html.tags([
         html.tag('p', {class: 'commentary-entry-heading'},
@@ -107,6 +112,9 @@ export default {
             relations.colorStyle.clone()
               .slot('color', slots.color),
 
+          data.isWikiEditorCommentary &&
+            {class: 'wiki-commentary'},
+
           relations.bodyContent.slot('mode', 'multiline')),
       ])),
 };