2018-09-10 09:21:59 +00:00
|
|
|
<header id="header" class="header">
|
2018-11-06 06:32:15 +00:00
|
|
|
<%/* Nav menu for desktop */%>
|
2018-11-08 01:57:15 +00:00
|
|
|
<nav id="main-nav" class="main-nav">
|
2018-11-01 01:35:09 +00:00
|
|
|
<% 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>
|
|
|
|
<% } %>
|
2018-11-11 06:25:13 +00:00
|
|
|
|
|
|
|
<div class="searchContainer">
|
|
|
|
<input class="searchBox" type="text" id="search" placeholder="Search...">
|
2018-11-11 10:27:27 +00:00
|
|
|
<a class="searchBtn" href="#" onClick="window.open(`https://gitlab.com/search?utf8=%E2%9C%93&search=` + document.getElementById(`search`).value + `&group_id=&project_id=8306723&search_code=true&repository_ref=master`)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"/></svg><!-- Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --></a>
|
2018-11-11 06:25:13 +00:00
|
|
|
</div>
|
2018-09-10 09:21:59 +00:00
|
|
|
</nav>
|
2018-11-06 06:32:15 +00:00
|
|
|
<%/* Nav menu for mobile */%>
|
|
|
|
<nav class="mobile-nav">
|
|
|
|
<h1 class="nickname"><%= theme.nickname %></h1>
|
2018-11-08 01:41:23 +00:00
|
|
|
<ul class="mobile-nav-menu">
|
|
|
|
<label for="mobile-menu-toggle"><a>☰ Menu</a></label>
|
|
|
|
<input id="mobile-menu-toggle" type="checkbox"/>
|
|
|
|
<ul class="mobile-nav-link">
|
2018-11-06 06:32:15 +00:00
|
|
|
<% for (let i in theme.menu) { %>
|
|
|
|
<a href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
|
|
|
|
<% } %>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2018-09-10 09:21:59 +00:00
|
|
|
</header>
|