hexo-theme-keep/layout/_partial/header.ejs

49 lines
1.6 KiB
Plaintext
Raw Normal View History

<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="/">
<%= 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">
<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') %>
<% } %>
</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>-->
</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>
<% } %>
</ul>
</div>
<div class="window-mask"></div>
</header>