Skip to content

Commit 81ee566

Browse files
Update navigation and tabs for print view and branding
Revised navigation and tab labels to use '🖨️ Print View' instead of 'Hard Copies' and updated the logo/title section for improved branding. Also cleaned up the single-page view button markup in main.html and adjusted conditional checks in tabs.html.
1 parent d810f93 commit 81ee566

File tree

3 files changed

+35
-25
lines changed

3 files changed

+35
-25
lines changed

overrides/main.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44

55
<!-- Adds file-eye icon to view hookup guide as a single page -->
66
{% if "single_page.md" %}
7-
<a href="/SparkFun_BlueSMiRF-v2/single_page" title="View Guide as Single-Page" class="md-content__button md-icon">
8-
{% include ".icons/material/file-eye-outline.svg" %}
9-
<!-- .icons/fontawesome/solid/scroll.svg -->
10-
</a>
7+
<a href="/SparkFun_BlueSMiRF-v2/single_page" title="View Guide as Single-Page" class="md-content__button md-icon">
8+
{% include ".icons/material/file-eye-outline.svg" %}
9+
</a>
1110
{% endif %}
1211

13-
1412
{{ super() }}
1513
{% endblock content %}

overrides/partials/nav.html

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,29 @@
3939
>
4040

4141
<!-- Site title -->
42-
<!-- title="{{ config.site_name | e }}" -->
43-
<label class="md-nav__title" for="__drawer">
42+
<!-- <label class="md-nav__title" for="__drawer">
4443
<a
4544
href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}"
46-
title="SparkFun Product Page"
45+
title="{{ config.site_name | e }}"
4746
class="md-nav__button md-logo"
4847
aria-label="{{ config.site_name }}"
4948
data-md-component="logo"
5049
>
5150
{% include "partials/logo.html" %}
5251
</a>
5352
{{ 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="SparkPNT"
60+
data-md-component="logo"
61+
>
62+
{% include "partials/logo.html" %}
63+
</a>
64+
{{ config.site_name }}
5465
</label>
5566

5667
<!-- Repository information -->
@@ -71,7 +82,8 @@
7182
<li class="md-nav__item">
7283
<a href="/SparkFun_BlueSMiRF-v2/hard_copy/" class="md-nav__link">
7384
<span class="md-ellipsis">
74-
Hard Copies&nbsp;{% include ".icons/material/book-open-variant.svg" %}
85+
🖨️ Print View
86+
<!-- Hard Copies&nbsp;{% include ".icons/material/book-open-variant.svg" %} -->
7587
</span>
7688
</a>
7789
</li>

overrides/partials/tabs.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,22 @@
3030
>
3131
<div class="md-tabs__inner md-grid">
3232

33-
<!-- Adds tab on right side of header -->
34-
{% if "hard_copy.md" %}
35-
<ul class="md-tabs__list" style="float: right;">
36-
<li class="md-tabs__item">
37-
<a href="/SparkFun_BlueSMiRF-v2/hard_copy/" class="md-tabs__link">
38-
Hard Copies 🖨️
39-
</a>
40-
</li>
41-
</ul>
42-
{% endif %}
33+
<!-- Adds tab on right side of header -->
34+
{% if "print_view.md" %}
35+
<ul class="md-tabs__list" style="float: right;">
36+
<li class="md-tabs__item">
37+
<a href="/SparkFun_BlueSMiRF-v2/hard_copy/" class="md-tabs__link">
38+
🖨️ Print View
39+
</a>
40+
</li>
41+
</ul>
42+
{% endif %}
4343

44-
<!-- Original tabbed sections -->
45-
<ul class="md-tabs__list">
46-
{% for nav_item in nav %}
47-
{{ item.render(nav_item) }}
48-
{% endfor %}
49-
</ul>
44+
<!-- Original tabbed sections -->
45+
<ul class="md-tabs__list">
46+
{% for nav_item in nav %}
47+
{{ item.render(nav_item) }}
48+
{% endfor %}
49+
</ul>
5050
</div>
5151
</nav>

0 commit comments

Comments
 (0)