navbar.html
Path: include/navbar.html | Language: HTML | Lines: ~13
Site-wide top navigation include with logo and primary section links.
Overview
navbar.html defines the persistent navigation bar included on standard pages.
It contains:
- Logo link to
/index - Internal links to
about,me,changelog,blog, anddoc/newest - External links to Patreon and Substack
The root container is nav#navbar, with links grouped under .navbar-links.
Structure
Container
- Root element:
<nav id="navbar">
Logo
- Anchor class:
.logo - SVG sprite reference:
/static/img/logo/logo-smooth.svg#logo - Keyboard access key:
\
Link Group
Inside .navbar-links:
.site->/about.me->/me.new->/changelog.blog->/blog/index.links->/doc/newest/index.patreon->https://www.patreon.com/gwern.mail->https://gwern.substack.com/
Integration
template/default.html includes it via SSI:
<!--#include virtual="/static/include/navbar.html" -->
Related code paths:
css/initial.cssstyles#navbarand.navbar-linksjs/extracts-load.jsincludes#navbarin content container selectorsjs/special-occasions.jstargets#navbar .logo-imagefor seasonal logo swaps
See Also
- default.html - Main page template that includes navbar
- include-footer - Companion bottom-of-page include
- special-occasions.js - Seasonal navbar/logo behaviors
- initial.css - Core navbar styling rules