LoveIt/layouts/partials/header.html

34 lines
1.4 KiB
HTML
Raw Normal View History

2019-02-03 12:30:44 +01:00
<nav class="navbar">
<div class="container">
<div class="navbar-header header-logo">
2019-08-04 15:53:35 +02:00
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
2019-02-03 12:30:44 +01:00
</div>
2019-08-04 15:53:35 +02:00
2019-02-03 12:30:44 +01:00
<div class="menu navbar-right">
2019-08-04 15:53:35 +02:00
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
<a class="menu-item{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{ end }}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a>
{{ end }}
<a href="javascript:void(0);" class="theme-switch"><i class="iconfont icon-sun"></i></a>&nbsp;
2019-02-03 12:30:44 +01:00
</div>
</div>
</nav>
2019-08-04 15:53:35 +02:00
2019-02-03 12:30:44 +01:00
<nav class="navbar-mobile" id="nav-mobile" style="display: none">
<div class="container">
<div class="navbar-header">
2019-02-26 00:28:14 +01:00
<div> <a href="javascript:void(0);" class="theme-switch"><i class="iconfont icon-sun"></i></a>&nbsp;<a href="{{.Site.BaseURL}}">{{ .Site.Title }}</a></div>
2019-02-03 12:30:44 +01:00
<div class="menu-toggle">
<span></span><span></span><span></span>
</div>
</div>
2019-08-04 15:53:35 +02:00
<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 | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a>
{{ end }}
2019-02-03 12:30:44 +01:00
</div>
</div>
</nav>