aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/nav.html
diff options
context:
space:
mode:
authorJulien Dessaux2023-01-28 23:21:42 +0100
committerJulien Dessaux2023-01-28 23:21:42 +0100
commit7ab6159c7fffb99c6b594e10b3d60c27fe02f965 (patch)
tree71efb0e59fb44ab9752d415d037958252803320b /layouts/partials/nav.html
parentHide theme switcher by default, only show it if javascript is enabled (diff)
downloadwww-7ab6159c7fffb99c6b594e10b3d60c27fe02f965.tar.gz
www-7ab6159c7fffb99c6b594e10b3d60c27fe02f965.tar.bz2
www-7ab6159c7fffb99c6b594e10b3d60c27fe02f965.zip
Fixed theme chooser not displayed upon first connection and some cleanup
Diffstat (limited to 'layouts/partials/nav.html')
-rw-r--r--layouts/partials/nav.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 9a63b34..a86bd73 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -14,12 +14,12 @@
{{- end -}}
{{- $url := urls.Parse .URL -}}
{{- $baseurl := urls.Parse $.Site.Params.Baseurl -}}
- <li class="nav-menu-margins-left-and-right{{if $active }} nav-menu-active{{end}}">
+ <li{{if $active }} class="nav-menu-active"{{end}}>
<a href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}"{{ if ne $url.Host $baseurl.Host }}target="_blank" {{ end }}>{{ .Name }}</a>
</li>
{{ end }}
<li>
- <select id="themes" class="nav-menu-magin-left" onchange="setTheme()">
+ <select id="themes" onchange="setTheme()">
<option value="black-theme">Black</option>
<option value="dark-theme">Dark</option>
<option value="light-theme">Light</option>