2020-04-01 10:14:18 +08:00
|
|
|
<header class="header-wrapper">
|
|
|
|
|
|
|
|
<div class="header-content">
|
|
|
|
|
2020-04-01 22:42:24 +08:00
|
|
|
<a class="logo-title article-title-hover-animation" href="/">
|
2020-04-01 10:14:18 +08:00
|
|
|
<%= config.title %>
|
|
|
|
</a>
|
|
|
|
|
2020-04-01 22:42:24 +08:00
|
|
|
<ul class="menu-list">
|
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 22:42:24 +08:00
|
|
|
<div class="menu-bar">
|
|
|
|
<div class="menu-bar-middle"></div>
|
|
|
|
<!--<i class="fa fa-bars"></i>-->
|
|
|
|
<!--<i class="fa fa-remove"></i>-->
|
2020-04-01 10:14:18 +08:00
|
|
|
</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) { %>
|
2020-04-01 22:42:24 +08:00
|
|
|
<li class="drawer-menu-item">
|
|
|
|
<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>
|
|
|
|
<% } %>
|
2020-04-01 10:14:18 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="window-mask"></div>
|
|
|
|
|
|
|
|
</header>
|
|
|
|
|