« 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.js13
-rw-r--r--src/strings-default.yaml6
2 files changed, 17 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},
diff --git a/src/strings-default.yaml b/src/strings-default.yaml
index 0a3bc707..79b4c1b0 100644
--- a/src/strings-default.yaml
+++ b/src/strings-default.yaml
@@ -690,6 +690,12 @@ misc:
 
   missingLinkContent: "(Missing link content)"
 
+  # navAccent:
+  #   Accent shown in the nav bar for navigating to pages that are
+  #   related to the current one.
+
+  navAccent: "({LINKS})"
+
   # quickDescription:
   #   Toggleable display where a shorter blurb from a description is
   #   initially visible, and a button can be clicked to display the