Skip to content

Commit 560689f

Browse files
committed
Add dark/light mode toggle to header
1 parent 403811c commit 560689f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

_includes/header.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
<header>
22
<a class="site-title" href="{{site.baseurl}}/">{{site.title}}</a>
3+
<!-- dark/light mode -->
4+
<span id="dark-mode-toggle" style="cursor: pointer">
5+
<svg
6+
stroke="currentColor"
7+
fill="currentColor"
8+
stroke-width="0"
9+
viewBox="0 0 16 16"
10+
height="1.2em"
11+
width="1.2em"
12+
xmlns="http://www.w3.org/2000/svg"
13+
>
14+
<path
15+
d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zm0 13V2a6 6 0 1 1 0 12z"
16+
></path>
17+
</svg>
18+
</span>
319
</header>

0 commit comments

Comments
 (0)