blog/themes/typing/layout/_partial/header.ejs

18 lines
500 B
Plaintext
Raw Normal View History

2018-09-10 09:21:59 +00:00
<header id="header" class="header">
<div class="mobile-nav">
<h1 class="nickname"><%= theme.nickname %></h1>
<a id="menu">
&#9776; Menu
</a>
</div>
<% if (theme.nav === 'left') { %>
<nav id="main-nav" class="main-nav nav-left">
<% } else { %>
<nav id="main-nav" class="main-nav">
<% } %>
<% for (let i in theme.menu) { %>
2018-09-10 09:21:59 +00:00
<a class="main-nav-link" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
<% } %>
</nav>
</header>