2020-04-01 10:14:18 +08:00
|
|
|
<header class="header-wrapper">
|
|
|
|
|
2020-11-25 23:39:24 +08:00
|
|
|
<div class="header-content">
|
2020-04-07 11:57:53 +08:00
|
|
|
<a class="logo-title" href="/">
|
2020-11-20 12:02:22 +08:00
|
|
|
<%= theme.base_info.title || config.title || 'KEEP' %>
|
2020-04-01 10:14:18 +08:00
|
|
|
</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>
|
|
|
|
<% } %>
|
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>
|
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-12-01 16:51:38 +08:00
|
|
|
<li class="drawer-menu-item flex-center">
|
2020-04-01 22:42:24 +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>
|
|
|
|
<% } %>
|
2020-04-01 10:14:18 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="window-mask"></div>
|
|
|
|
|
|
|
|
</header>
|
|
|
|
|