zz_

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

zzmq.dev@gmail.com/zz / site / themes / zz-docs / fragments / nav.html @ 5e5720fb 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>
  <nav class='sidenav sidenav-archive' aria-label='Archive'>
    <a class='navgroup' href='/docs/archive/'>Archive</a>
    <a class='navlink' ht-attrs='href:item.url' ht-content='item.title' ht-template='item:site.archive_nav'></a>
  </nav>
</aside>