hexo-theme-stellar/layout/_partial/sidebar/header.ejs

18 lines
478 B
Plaintext

<header class='header'>
<%- partial('logo') %>
<nav class='menu'>
<% theme.sidebar.menu.forEach((item, i) => { %>
<% if (item.class == page.class) { %>
<a class='nav-item active' href='<%- url_for(item.url) %>'>
<span><%- __(item.name) %></span>
</a>
<% } else { %>
<a class='nav-item' href='<%- url_for(item.url) %>'>
<span><%- __(item.name) %></span>
</a>
<% } %>
<% }); %>
</nav>
</header>