Skip to content
Myr

nav.html

This file

Path

docs/overrides/partials/nav.html

54 lines · 1.5 KiB · HTML

Last changed by

Add speakeasy sponsorship (#3305)Tom Christiebefore adoptiond4961b9

History of this file

Take it

Add speakeasy sponsorship (#3305)Tom Christiebefore adoptiond4961b9

lines 1–54why, one step back
1{% import "partials/nav-item.html" as item with context %}
23<!-- Determine class according to configuration -->4 {% set class = "md-nav md-nav--primary" %}5 {% if "navigation.tabs" in features %}6 {% set class = class ~ " md-nav--lifted" %}7 {% endif %}8 {% if "toc.integrate" in features %}9 {% set class = class ~ " md-nav--integrated" %}10 {% endif %}1112 <!-- Main navigation -->13 <nav14 class="{{ class }}"15 aria-label="{{ lang.t('nav.title') }}"16 data-md-level="0"17 >1819 <!-- Site title -->20 <label class="md-nav__title" for="__drawer">21 <a22 href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}"23 title="{{ config.site_name | e }}"24 class="md-nav__button md-logo"25 aria-label="{{ config.site_name }}"26 data-md-component="logo"27 >28 {% include "partials/logo.html" %}29 </a>30 {{ config.site_name }}31 </label>3233 <!-- Repository information -->34 {% if config.repo_url %}35 <div class="md-nav__source">36 {% include "partials/source.html" %}37 </div>38 {% endif %}3940 <!-- Navigation list -->41 <ul class="md-nav__list" data-md-scrollfix>42 {% for nav_item in nav %}43 {% set path = "__nav_" ~ loop.index %}44 {{ item.render(nav_item, path, 1) }}45 {% endfor %}46 </ul>4748 <ul class="md-nav__list" data-md-scrollfix style="padding-top: 15px; padding-left: 10px">49 <div>50 <a href="https://speakeasy.com"><img src="/img/speakeasy.png" width=150px style=></img></a>51 </div>52 </ul>53 </nav>54