fix(layout): add default mobile menu

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

View File

@ -48,9 +48,11 @@
</form>
</div>
<i>Powered by DuckDuckGo</i>
<% if (!theme.menu) { %><a class="mobile-nav-link-a" href="<%- config.root %>">Home</a>
<% } else { %>
<% for (const i in theme.menu) { %>
<a class="mobile-nav-link-a" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
<% } %>
<% }} %>
</ul>
</ul>
</nav>