Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rhnvrm/bodhi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/menu.html')
-rw-r--r--layouts/partials/menu.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index 4fbf912..856d4b1 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -16,6 +16,12 @@
<i data-feather="{{ $key.icon }}"></i>
</a>
{{- end -}}
+ <a onclick="toggleTheme('dark');">
+ <i data-feather="moon"></i>
+ </a>
+ <a onclick="toggleTheme('light');">
+ <i data-feather="sun"></i>
+ </a>
{{if eq $currentPage.Params.url "/search/" }}<b>{{end}}
{{if and (not (isset .Site.Params "disableSearch")) (not (eq .Site.Params.disableSearch true)) }}
<a href="{{ "/search" | relURL }}">search<svg aria-hidden="true" class="i-search" viewBox="0 0 32 32" width="10" height="10" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"><circle cx="14" cy="14" r="12"></circle><path d="M23 23l7 7"></path></svg></a>