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

47 lines
1.5 KiB
Plaintext

<header class="header-wrapper">
<div class="header-content">
<a class="logo-title article-title-hover-animation" href="/">
<%= config.title %>
</a>
<ul class="menu-list">
<% 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>
</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>
<div class="menu-bar">
<div class="menu-bar-middle"></div>
</div>
</div>
<div class="header-drawer">
<ul class="drawer-menu-list">
<% for (let i in theme.menu) { %>
<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>
</li>
<% } %>
</ul>
</div>
<div class="window-mask"></div>
</header>