modified: header

This commit is contained in:
XPoet 2020-04-01 10:59:51 +08:00
parent 1873feb5e8
commit 0b45c5e534
2 changed files with 20 additions and 23 deletions

View File

@ -49,7 +49,7 @@ highlight_theme: normal
# You can get your appid and appkey from https://leancloud.cn # You can get your appid and appkey from https://leancloud.cn
# more info please open https://github.com/xCss/Valine # more info please open https://github.com/xCss/Valine
valine: valine:
enable: true enable: false
appid: # your leancloud application appid appid: # your leancloud application appid
appkey: # your leancloud application appkey appkey: # your leancloud application appkey
notify: false # mail notifier, https://github.com/xCss/Valine/wiki notify: false # mail notifier, https://github.com/xCss/Valine/wiki
@ -79,7 +79,7 @@ busuanzi_count:
# Local Search # Local Search
# Dependencies: https://github.com/theme-next/hexo-generator-searchdb # Dependencies: https://github.com/theme-next/hexo-generator-searchdb
local_search: local_search:
enable: true enable: false
# If auto, trigger search by changing input. # If auto, trigger search by changing input.
# If manual, trigger search by pressing enter key or search button. # If manual, trigger search by pressing enter key or search button.
trigger: auto trigger: auto

View File

@ -7,19 +7,20 @@
</a> </a>
<ul class="menu-list vertical-center"> <ul class="menu-list vertical-center">
<li class=""> <% for (let i in theme.menu) { %>
<a href="">HOME</a> <li class="menu-item">
</li> <a class="<%- isInHomePaging(page.path, theme.menu[i]) ? 'current' : is_current(theme.menu[i]) ? 'current' : '' %>"
<li class=""> href="<%- url_for(theme.menu[i]) %>"><%= __(i.toLowerCase()) %></a>
<a href="/">ARCHIVE</a> </li>
</li> <% } %>
<li class=""> <% if (theme.local_search.enable) { %>
<a href="/">ABOUT</a> <li>
</li> <button class="search-btn btn popup-trigger"><i class="fa fa-search"></i></button>
<li class=""> </li>
<a href=""><i class="fa fa-search"></i></a> <%- next_js('local-search.js') %>
</li> <% } %>
</ul> </ul>
<div class="menu-bar vertical-center"> <div class="menu-bar vertical-center">
<i class="fa fa-bars"></i> <i class="fa fa-bars"></i>
</div> </div>
@ -27,15 +28,11 @@
<div class="header-drawer"> <div class="header-drawer">
<ul class="drawer-menu-list"> <ul class="drawer-menu-list">
<li class="drawer-menu-item drawer-menu-active"> <% for (let i in theme.menu) { %>
<a href="">HOME</a> <li class="drawer-menu-item <%- isInHomePaging(page.path, theme.menu[i]) ? 'drawer-menu-active' : is_current(theme.menu[i]) ? 'drawer-menu-active' : '' %>">
</li> <a href="<%- url_for(theme.menu[i]) %>"><%= __(i.toLowerCase()) %></a>
<li class="drawer-menu-item"> </li>
<a href="/">ARCHIVE</a> <% } %>
</li>
<li class="drawer-menu-item">
<a href="/">ABOUT</a>
</li>
</ul> </ul>
</div> </div>