package generator // navDefs is appended to every theme template when parsing. // It defines named sub-templates shared across all themes: // - "splashGate" — synchronous script: first child of ; sets html.sno-splash-skip when // splash should not run (?splash=0, not index.html, or Referer from same-site index/pageN). // - "navhints" — keyboard shortcut hint bar HTML // - "navmodal" — full-screen expanded-post modal HTML + image-sizing CSS // - "navscript" — keyboard navigation + Web Audio; splash/nav/modal sounds from themeSoundsJSON (per theme) // // Each theme calls {{template "splashGate"}}, {{template "navhints" .}}, {{template "navmodal" .}}, // and {{template "navscript" .}} at the appropriate points in its HTML. // All theme-specific CSS lives in each theme file so themes stay self-contained. const navDefs = ` {{define "splashGate"}} {{end}} {{define "navhints"}} {{end}} {{define "navmodal"}}
{{end}} {{define "navscript"}} {{end}} `