diff options
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 |
commit | 7833e72b7bdac1a67aae038f3a1c2d6842441d4c (patch) | |
tree | 475ee01e4715fa6ddfa8367eb83cb78b80f015c1 /src | |
parent | 7af82c0c009d2f2aeb6b242b5ee1bafdee4ffc95 (diff) |
content: generatePageLayout: auto-wrap nav accents & bottom row
Diffstat (limited to 'src')
-rw-r--r-- | src/content/dependencies/generatePageLayout.js | 13 | ||||
-rw-r--r-- | src/strings-default.yaml | 6 |
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 |