aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/nav.html
diff options
context:
space:
mode:
authorJulien Dessaux2023-01-25 17:45:06 +0100
committerJulien Dessaux2023-01-25 18:59:53 +0100
commit627f1f5d32ebeb89c41f72d960b4ab35778f7625 (patch)
tree29bd5f7531bd5bfe9c06c93f9166fdbd704676b9 /layouts/partials/nav.html
parentUpdated last blog article (diff)
downloadwww-627f1f5d32ebeb89c41f72d960b4ab35778f7625.tar.gz
www-627f1f5d32ebeb89c41f72d960b4ab35778f7625.tar.bz2
www-627f1f5d32ebeb89c41f72d960b4ab35778f7625.zip
Added themes
Diffstat (limited to '')
-rw-r--r--layouts/partials/nav.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 1020c03..5abfc6f 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -2,6 +2,13 @@
<nav>
<ul>
<li class="nav-menu-title{{if .IsHome}} nav-menu-active{{end}}"><a href="/">{{ .Site.Title }}</a></li>
+ <li>
+ <select id="themes" class="nav-menu-magin-left" onchange="setTheme()">
+ <option value="black-theme">Black</option>
+ <option value="dark-theme">Dark</option>
+ <option value="light-theme">Light</option>
+ </select>
+ </li>
{{- $p := . -}}
{{- range first 1 .Site.Menus.main.ByWeight -}}