zz_

site/themes/zz-docs/fragments/nav.html

zzmq.dev@gmail.com/zz / site / themes / zz-docs / fragments / nav.html @ 153aad69 Download
Ladder Summary
  • file The **`site/themes/zz-docs/fragments/nav.html`** file defines a sidebar navigation fragment for the documentation site. It renders two `<nav>` sections: the main site navigation (populated from `site.nav` items) and an “Archive” navigation (populated from `site.archive_nav` items), using custom `ht-attrs`, `ht-content`, and `ht-template` attributes to inject URLs and titles at build‑time. The file does not export any JavaScript functions or classes—its purpose is purely to provide an HTML template for the site's sidebar.
 <aside class='sidebar'>
  <nav class='sidenav'>
  <a class='navlink' ht-attrs='href:item.url' ht-content='item.title' ht-template='item:site.nav'></a>
  </nav>
 </aside>