« 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/generateContentEntry.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/generateContentEntry.js')
-rw-r--r--src/content/dependencies/generateContentEntry.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/content/dependencies/generateContentEntry.js b/src/content/dependencies/generateContentEntry.js
index 7712d9f6..80a155fe 100644
--- a/src/content/dependencies/generateContentEntry.js
+++ b/src/content/dependencies/generateContentEntry.js
@@ -29,8 +29,9 @@ export default {
   }),
 
   data: (entry) => ({
-    isWikiEditorCommentary:
-      entry.isWikiEditorCommentary,
+    isWikiEditorEntry:
+      entry.isWikiEditorCommentary ||
+      entry.isWikiEditorSource,
   }),
 
   slots: {
@@ -89,7 +90,7 @@ export default {
                       html.tag('span', {class: 'content-entry-accent'},
                         language.$(titleCapsule, 'accent.withAnnotation', {annotation}));
 
-                    if (data.isWikiEditorCommentary) {
+                    if (data.isWikiEditorEntry) {
                       workingCapsule += '.wikiEditor';
                     }
                   }
@@ -106,7 +107,7 @@ export default {
             relations.colorStyle.clone()
               .slot('color', slots.color),
 
-          data.isWikiEditorCommentary &&
+          data.isWikiEditorEntry &&
             {class: 'wiki-commentary'},
 
           relations.bodyContent.slot('mode', 'multiline')),