mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-29 03:32:44 +01:00
91e85fce37
Changed position of light/dark switch from left to the right menu. On the movile version the switch remain to the left.
31 lines
No EOL
1.4 KiB
HTML
31 lines
No EOL
1.4 KiB
HTML
<nav class="navbar">
|
|
<div class="container">
|
|
<div class="navbar-header header-logo">
|
|
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
|
|
</div>
|
|
<div class="menu navbar-right">
|
|
{{ $currentPage := . }}
|
|
{{ range .Site.Menus.main }}
|
|
<a class="menu-item{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{end}}" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a>
|
|
{{ end }}
|
|
<a href="javascript:void(0);" class="theme-switch"><i class="iconfont icon-sun"></i></a>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<nav class="navbar-mobile" id="nav-mobile" style="display: none">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<div> <a href="javascript:void(0);" class="theme-switch"><i class="iconfont icon-sun"></i></a> <a href="{{.Site.BaseURL}}">{{ .Site.Title }}</a></div>
|
|
<div class="menu-toggle">
|
|
<span></span><span></span><span></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="menu" id="mobile-menu">
|
|
{{ $currentPage := . }}
|
|
{{ range .Site.Menus.main }}
|
|
<a class="menu-item{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{end}}" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
</nav> |