fix(layout): add default menu

This commit is contained in:
MDLeom 2020-08-16 03:41:50 +00:00
parent a8a23d535c
commit f28c920fad
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 3 additions and 1 deletions

View File

@ -1,9 +1,11 @@
<header id="header" class="header">
<%/* Nav menu for desktop */%>
<nav class="main-nav">
<% if (!theme.menu) { %><a class="main-nav-link" href="<%- config.root %>">Home</a>
<% } else { %>
<% for (const i in theme.menu) { %>
<a class="main-nav-link" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
<% } %>
<% }} %>
<div class="search-container">
<form id="searchForm" method="post" action="https://duckduckgo.com/" target="_blank" rel="noopener external nofollow noreferrer">