Skip to content

Commit c9cca71

Browse files
committed
feat: Move theme toggle next to Home
Remove toolbar in header.
1 parent 5c2ed6f commit c9cca71

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

assets/styles/_header.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151

5252
.theme-toggle {
5353
cursor: pointer;
54+
padding: 0;
5455
}
5556

5657
.theme-toggler {

layouts/partials/header.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
{{- partial "navbar.html" . -}}
88

9-
{{- partial "toolbar.html" . -}}
10-
119
{{- if and (site.Params.showBreadCrumbs) (not .IsHome) -}}
1210
{{- partial "breadcrumbs.html" . -}}
1311
{{- end -}}

layouts/partials/navbar.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
<div class="navbar__first">
77
<ul class="navbar__list">
88
<li><a href="{{ $logoLink }}">{{ $logoText }}</a></li>
9+
<li>
10+
<button class="theme-toggle transparent">
11+
{{- partial "theme-icon.html" . -}}
12+
</button>
13+
</li>
914
</ul>
1015
</div>
1116

layouts/partials/toolbar.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)