« get me outta code hell

add tab-link for skipping to right sidebar - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-01-12 20:49:02 -0400
committer(quasar) nebula <towerofnix@gmail.com>2021-01-12 20:55:20 -0400
commit1f50ae6aa6c71ae11d571ec4df012274e7717966 (patch)
treef30395832971c160e4241a42239a5c496025fedb
parent64f4bd54e0d1b34464a42eb5d9d952b8a76a5684 (diff)
add tab-link for skipping to right sidebar
-rw-r--r--upd8.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/upd8.js b/upd8.js
index 82215c11..dac8a134 100644
--- a/upd8.js
+++ b/upd8.js
@@ -1293,7 +1293,8 @@ async function writePage(directoryParts, {
                     ${mainHTML && fixWS`
                         <div id="skippers">
                             <span class="skipper"><a href="#content">Skip to content</a></span>
-                            ${sidebar.content && `<span class="skipper"><a href="#sidebar-left">Skip to sidebar</a></span>`}
+                            ${sidebarLeftHTML && `<span class="skipper"><a href="#sidebar-left">Skip to sidebar ${sidebarRightHTML && '(left)'}</a></span>`}
+                            ${sidebarRightHTML && `<span class="skipper"><a href="#sidebar-right">Skip to sidebar ${sidebar.content && '(right)'}</a></span>`}
                         </div>
                     `}
                     ${layoutHTML}