|
| 1 | +<!-- |
| 2 | + Copyright (c) 2016-2023 Martin Donath <[email protected]> |
| 3 | +
|
| 4 | + Permission is hereby granted, free of charge, to any person obtaining a copy |
| 5 | + of this software and associated documentation files (the "Software"), to |
| 6 | + deal in the Software without restriction, including without limitation the |
| 7 | + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
| 8 | + sell copies of the Software, and to permit persons to whom the Software is |
| 9 | + furnished to do so, subject to the following conditions: |
| 10 | +
|
| 11 | + The above copyright notice and this permission notice shall be included in |
| 12 | + all copies or substantial portions of the Software. |
| 13 | +
|
| 14 | + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 | + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 | + FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE |
| 17 | + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 18 | + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 19 | + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS |
| 20 | + IN THE SOFTWARE. |
| 21 | +--> |
| 22 | + |
| 23 | +{% import "partials/nav-item.html" as item with context %} |
| 24 | + |
| 25 | +<!-- Determine base classes --> |
| 26 | +{% set class = "md-nav md-nav--primary" %} |
| 27 | +{% if "navigation.tabs" in features %} |
| 28 | + {% set class = class ~ " md-nav--lifted" %} |
| 29 | +{% endif %} |
| 30 | +{% if "toc.integrate" in features %} |
| 31 | + {% set class = class ~ " md-nav--integrated" %} |
| 32 | +{% endif %} |
| 33 | + |
| 34 | +<!-- Navigation --> |
| 35 | +<nav |
| 36 | + class="{{ class }}" |
| 37 | + aria-label="{{ lang.t('nav') }}" |
| 38 | + data-md-level="0" |
| 39 | +> |
| 40 | + |
| 41 | + <!-- Site title --> |
| 42 | + <!-- <label class="md-nav__title" for="__drawer"> |
| 43 | + <a |
| 44 | + href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}" |
| 45 | + title="{{ config.site_name | e }}" |
| 46 | + class="md-nav__button md-logo" |
| 47 | + aria-label="{{ config.site_name }}" |
| 48 | + data-md-component="logo" |
| 49 | + > |
| 50 | + {% include "partials/logo.html" %} |
| 51 | + </a> |
| 52 | + {{ config.site_name }} |
| 53 | + </label> --> |
| 54 | + <label class="md-nav__title" for="__drawer"> |
| 55 | + <a |
| 56 | + href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}" |
| 57 | + title="sparkfun.com" |
| 58 | + class="md-nav__button md-logo" |
| 59 | + aria-label="SparkFun" |
| 60 | + data-md-component="logo" |
| 61 | + > |
| 62 | + {% include "partials/logo.html" %} |
| 63 | + </a> |
| 64 | + {{ config.site_name }} |
| 65 | + </label> |
| 66 | + |
| 67 | + <!-- Repository information --> |
| 68 | + {% if config.repo_url %} |
| 69 | + <div class="md-nav__source"> |
| 70 | + {% include "partials/source.html" %} |
| 71 | + </div> |
| 72 | + {% endif %} |
| 73 | + |
| 74 | + <!-- Navigation list --> |
| 75 | + <ul class="md-nav__list" data-md-scrollfix> |
| 76 | + {% for nav_item in nav %} |
| 77 | + {% set path = "__nav_" ~ loop.index %} |
| 78 | + {{ item.render(nav_item, path, 1) }} |
| 79 | + {% endfor %} |
| 80 | + |
| 81 | + <!-- Add Hard Copies to NAV menu --> |
| 82 | + <li class="md-nav__item"> |
| 83 | + <a href="/SparkFun_Thing_Plus_RP2350/hard_copy/" class="md-nav__link"> |
| 84 | + <span class="md-ellipsis"> |
| 85 | + Hard Copies 🖨️ |
| 86 | + <!-- Hard Copies {% include ".icons/material/book-open-variant.svg" %} --> |
| 87 | + </span> |
| 88 | + </a> |
| 89 | + </li> |
| 90 | + </ul> |
| 91 | +</nav> |
0 commit comments