2020-04-01 10:14:18 +08:00
|
|
|
<header class="header-wrapper">
|
|
|
|
|
|
|
|
<div class="header-content">
|
|
|
|
|
2020-04-01 15:28:01 +08:00
|
|
|
<a class="logo-title vertical-center" href="/">
|
2020-04-01 10:14:18 +08:00
|
|
|
<%= config.title %>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<ul class="menu-list vertical-center">
|
2020-04-01 10:59:51 +08:00
|
|
|
<% for (let i in theme.menu) { %>
|
|
|
|
<li class="menu-item">
|
2020-04-01 15:28:01 +08:00
|
|
|
<a class="<%- isInHomePaging(page.path, theme.menu[i]) ? 'active' : is_current(theme.menu[i]) ? 'active' : '' %>"
|
|
|
|
href="<%- url_for(theme.menu[i]) %>"
|
|
|
|
>
|
|
|
|
<%= __(i.toLowerCase()).toUpperCase() %>
|
|
|
|
</a>
|
2020-04-01 10:59:51 +08:00
|
|
|
</li>
|
|
|
|
<% } %>
|
|
|
|
<% if (theme.local_search.enable) { %>
|
|
|
|
<li>
|
|
|
|
<button class="search-btn btn popup-trigger"><i class="fa fa-search"></i></button>
|
|
|
|
</li>
|
|
|
|
<%- next_js('local-search.js') %>
|
|
|
|
<% } %>
|
2020-04-01 10:14:18 +08:00
|
|
|
</ul>
|
2020-04-01 10:59:51 +08:00
|
|
|
|
2020-04-01 10:14:18 +08:00
|
|
|
<div class="menu-bar vertical-center">
|
|
|
|
<i class="fa fa-bars"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="header-drawer">
|
|
|
|
<ul class="drawer-menu-list">
|
2020-04-01 10:59:51 +08:00
|
|
|
<% for (let i in theme.menu) { %>
|
|
|
|
<li class="drawer-menu-item <%- isInHomePaging(page.path, theme.menu[i]) ? 'drawer-menu-active' : is_current(theme.menu[i]) ? 'drawer-menu-active' : '' %>">
|
|
|
|
<a href="<%- url_for(theme.menu[i]) %>"><%= __(i.toLowerCase()) %></a>
|
|
|
|
</li>
|
|
|
|
<% } %>
|
2020-04-01 10:14:18 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="window-mask"></div>
|
|
|
|
|
|
|
|
</header>
|
|
|
|
|