mirror of https://gitlab.com/curben/blog
fix(layout): add default mobile menu
This commit is contained in:
parent
f28c920fad
commit
e1cdcf5f33
|
@ -48,9 +48,11 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<i>Powered by DuckDuckGo</i>
|
<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) { %>
|
<% for (const i in theme.menu) { %>
|
||||||
<a class="mobile-nav-link-a" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
|
<a class="mobile-nav-link-a" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
|
||||||
<% } %>
|
<% }} %>
|
||||||
</ul>
|
</ul>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in New Issue