hexo-theme-ayer/layout/_partial/sidebar.ejs

34 lines
972 B
Plaintext
Raw Normal View History

2019-12-03 11:37:44 +00:00
<button class="navbar-toggle"></button>
<nav class="navbar">
<% if (theme.logo){ %>
<div class="logo">
<a href="<%- url_for() %>"><img src="<%- theme.logo %>" alt="<%= config.title %>"></a>
</div>
<% } %>
<ul class="nav nav-main">
<% for (var i in theme.menu){ %>
<li class="nav-item">
<a class="nav-item-link" href="<%- url_for(theme.menu[i]) %>"><%= i %></a>
</li>
<% } %>
</ul>
</nav>
<nav class="navbar navbar-bottom">
<ul class="nav">
<li class="nav-item">
<% if (theme.search){ %>
<a class="nav-item-link nav-item-search" title="<%= __('search') %>">
<i class="ri-search-line"></i>
</a>
<% } %>
<% if (theme.rss){ %>
<a class="nav-item-link" target="_blank" href="<%- url_for(theme.rss) %>" title="<%= __('rss_feed') %>">
<i class="ri-rss-line"></i>
</a>
<% } %>
</li>
</ul>
</nav>
<div class="search-form-wrap">
<%- partial('post/search') %>
</div>