mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user