[web] Suppress skip-to-content link on pages without a navbar (#35670)

* Suppress skip-to-content link on pages without a navbar

* Add main content as target area for the skip link on the library page

GitOrigin-RevId: a47d7bbc283b648e47db93648d8fcae6ae12ea5a
This commit is contained in:
Rebeka Dekany
2026-09-17 11:36:29 +00:00
committed by Copybot
parent 4132731016
commit 5ccbd1eb5c
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ html(
defer=deferScripts
)
if typeof suppressSkipToContent == 'undefined'
if suppressSkipToContent === false || (typeof suppressSkipToContent == 'undefined' && typeof suppressNavbar == 'undefined')
a(class='skip-to-content' href='#main-content') #{translate('skip_to_content')}
block body
@@ -6,6 +6,7 @@ block entrypointVar
block vars
- const suppressNavContentLinks = true
- const suppressNavbar = true
- const suppressSkipToContent = false
- const suppressFooter = true
- const suppressPugCookieBanner = true
- isWebsiteRedesign = true