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 */%>
|
2020-04-04 05:53:32 +00:00
|
|
|
<nav class="main-nav">
|
2020-08-16 03:41:50 +00:00
|
|
|
<% if (!theme.menu) { %><a class="main-nav-link" href="<%- config.root %>">Home</a>
|
|
|
|
<% } else { %>
|
2020-03-06 11:05:51 +00:00
|
|
|
<% for (const i in theme.menu) { %>
|
2021-02-22 07:00:28 +00:00
|
|
|
<% if (url_for(theme.menu[i]) !== url_for(page.path)) { %>
|
2018-09-10 09:21:59 +00:00
|
|
|
<a class="main-nav-link" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
|
2021-02-22 07:00:28 +00:00
|
|
|
<% } else { %>
|
|
|
|
<span class="main-nav-link"><%= i %></span>
|
|
|
|
<% } %>
|
2020-08-16 03:41:50 +00:00
|
|
|
<% }} %>
|
2018-11-11 06:25:13 +00:00
|
|
|
|
2020-03-20 05:37:09 +00:00
|
|
|
<div class="search-container">
|
2020-01-18 05:46:01 +00:00
|
|
|
<form id="searchForm" method="post" action="https://duckduckgo.com/" target="_blank" rel="noopener external nofollow noreferrer">
|
2020-03-20 05:37:09 +00:00
|
|
|
<input type="text" name="q" class="search-box" placeholder="Search..." title="Powered by DuckDuckGo">
|
2019-11-12 10:19:27 +00:00
|
|
|
<input type="hidden" name="sites" value="<%- config.url.replace(/^http(s)?:\/\//, '') %>">
|
2019-06-07 09:09:51 +00:00
|
|
|
<input type="hidden" name="kd" value="-1">
|
|
|
|
<input type="hidden" name="kg" value="p">
|
|
|
|
<input type="hidden" name="kae" value="#000">
|
2020-03-20 05:37:09 +00:00
|
|
|
<a class="search-button no-underline" id="search-click">
|
2019-05-21 04:07:10 +00:00
|
|
|
<svg viewBox="0 0 512 512">
|
2019-06-23 07:40:15 +00:00
|
|
|
<title>Powered by DuckDuckGo</title>
|
2019-05-21 04:07:10 +00:00
|
|
|
<desc>Search icon</desc>
|
|
|
|
<use href="/svg/search.svg#search"/>
|
|
|
|
</svg>
|
|
|
|
</a>
|
2019-06-07 09:09:51 +00:00
|
|
|
</form>
|
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">
|
2020-08-10 08:29:36 +00:00
|
|
|
<h1 class="site-title"><a href="<%- config.root %>"><%= config.title %></a></h1>
|
2018-11-08 01:41:23 +00:00
|
|
|
<ul class="mobile-nav-menu">
|
2020-04-04 05:53:32 +00:00
|
|
|
<label for="mobile-menu-toggle"><a class="no-underline" id="menu-button">☰</a></label>
|
2018-11-08 01:41:23 +00:00
|
|
|
<input id="mobile-menu-toggle" type="checkbox"/>
|
2020-04-04 05:53:32 +00:00
|
|
|
<ul id="mobile-nav-link">
|
2020-03-20 05:37:09 +00:00
|
|
|
<div class="search-container">
|
2020-01-18 05:46:01 +00:00
|
|
|
<form id="searchFormMob" method="post" action="https://duckduckgo.com/" target="_blank" rel="noopener external nofollow noreferrer">
|
2020-03-20 05:37:09 +00:00
|
|
|
<input type="text" name="q" class="search-box" placeholder="Search..." title="Powered by DuckDuckGo">
|
2019-11-12 10:19:27 +00:00
|
|
|
<input type="hidden" name="sites" value="<%- config.url.replace(/^http(s)?:\/\//, '') %>">
|
2019-06-07 09:09:51 +00:00
|
|
|
<input type="hidden" name="kd" value="-1">
|
|
|
|
<input type="hidden" name="kg" value="p">
|
|
|
|
<input type="hidden" name="kae" value="#000">
|
2020-03-20 05:37:09 +00:00
|
|
|
<a class="search-button no-underline" id="search-click-mobile">
|
2019-06-01 09:21:51 +00:00
|
|
|
<svg viewBox="0 0 512 512">
|
2019-06-23 07:40:15 +00:00
|
|
|
<title>Powered by DuckDuckGo</title>
|
2019-06-01 09:21:51 +00:00
|
|
|
<desc>Search icon</desc>
|
|
|
|
<use href="/svg/search.svg#search"/>
|
|
|
|
</svg>
|
|
|
|
</a>
|
2019-06-07 09:09:51 +00:00
|
|
|
</form>
|
2019-06-01 09:21:51 +00:00
|
|
|
</div>
|
2019-06-23 07:40:15 +00:00
|
|
|
<i>Powered by DuckDuckGo</i>
|
2020-08-16 03:46:16 +00:00
|
|
|
<% if (!theme.menu) { %><a class="mobile-nav-link-a" href="<%- config.root %>">Home</a>
|
|
|
|
<% } else { %>
|
2020-03-06 11:05:51 +00:00
|
|
|
<% for (const i in theme.menu) { %>
|
2021-02-22 07:00:28 +00:00
|
|
|
<% if (url_for(theme.menu[i]) !== url_for(page.path)) { %>
|
2019-06-01 09:21:51 +00:00
|
|
|
<a class="mobile-nav-link-a" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
|
2021-02-22 07:00:28 +00:00
|
|
|
<% } else { %>
|
|
|
|
<span class="mobile-nav-link-a"><%= i %></span>
|
|
|
|
<% } %>
|
2020-08-16 03:46:16 +00:00
|
|
|
<% }} %>
|
2018-11-06 06:32:15 +00:00
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2018-09-10 09:21:59 +00:00
|
|
|
</header>
|