refactor: move theme switcher to a partial

This commit is contained in:
httpjamesm 2022-12-29 13:19:08 -05:00
parent 1d12372ea5
commit 3ff8e8cb96
3 changed files with 8 additions and 12 deletions

View file

@ -0,0 +1,6 @@
<div class="icon">
<a href="/options/theme?redirect_url={{ .currentUrl }}">
<img src="/static/icons/{{ if eq .theme "dark" }}sun{{
else }}moon{{ end }}.svg" alt="Toggle theme" />
</a>
</div>