« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generatePageLayout.js11
-rw-r--r--src/static/css/page.css13
2 files changed, 15 insertions, 9 deletions
diff --git a/src/content/dependencies/generatePageLayout.js b/src/content/dependencies/generatePageLayout.js
index 00e6422b..e49075a1 100644
--- a/src/content/dependencies/generatePageLayout.js
+++ b/src/content/dependencies/generatePageLayout.js
@@ -307,15 +307,18 @@ export default {
             [language.onlyIfOptions]: ['title'],
           };
 
-          workingOptions.title = headingNamePart;
+          workingOptions.title =
+            html.tag('span', {class: 'title-part'},
+              headingNamePart);
 
           if (!html.isBlank(slots.titleDetail)) {
             workingCapsule += '.withDetail';
             workingOptions.detailAccent =
               html.tag('span', {class: 'name-detail'},
-                language.$(capsule, 'withDetail.accent', {
-                  detail: slots.titleDetail,
-                }));
+                html.metatag('chunkwrap', {split: ':'},
+                  language.$(capsule, 'withDetail.accent', {
+                    detail: slots.titleDetail,
+                  })));
           }
 
           return language.$(workingCapsule, workingOptions);
diff --git a/src/static/css/page.css b/src/static/css/page.css
index 353ae873..8929dc72 100644
--- a/src/static/css/page.css
+++ b/src/static/css/page.css
@@ -810,12 +810,15 @@
 
   #content h1 {
     font-size: 1.5em;
-  }
 
-  #content h1 .name-detail {
-    opacity: 0.8;
-    margin-left: 0.5ch;
-    font-weight: inherit;
+    .title-part:has(+ .name-detail) {
+      margin-right: 0.5ch;
+    }
+
+    .name-detail {
+      opacity: 0.8;
+      font-weight: inherit;
+    }
   }
 
   #content li {