« get me outta code hell

content: generatePageLayout: auto-wrap nav accents & bottom row - 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>2024-10-19 20:56:40 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-11-02 22:25:45 -0300
commit7833e72b7bdac1a67aae038f3a1c2d6842441d4c (patch)
tree475ee01e4715fa6ddfa8367eb83cb78b80f015c1 /src/content/dependencies
parent7af82c0c009d2f2aeb6b242b5ee1bafdee4ffc95 (diff)
content: generatePageLayout: auto-wrap nav accents & bottom row
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generatePageLayout.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/content/dependencies/generatePageLayout.js b/src/content/dependencies/generatePageLayout.js
index 67a44b2b..460ae51a 100644
--- a/src/content/dependencies/generatePageLayout.js
+++ b/src/content/dependencies/generatePageLayout.js
@@ -379,14 +379,23 @@ export default {
                         content),
 
                       html.tag('span', {class: 'nav-link-accent'},
+                        {[html.noEdgeWhitespace]: true},
                         {[html.onlyIfContent]: true},
-                        cur.accent),
+
+                        language.$('misc.navAccent', {
+                          [language.onlyIfOptions]: ['links'],
+                          links: cur.accent,
+                        })),
                     ]));
               })),
 
           html.tag('div', {class: 'nav-bottom-row'},
             {[html.onlyIfContent]: true},
-            slots.navBottomRowContent),
+
+            language.$('misc.navAccent', {
+              [language.onlyIfOptions]: ['links'],
+              links: slots.navBottomRowContent,
+            })),
 
           html.tag('div', {class: 'nav-content'},
             {[html.onlyIfContent]: true},