modified: header
This commit is contained in:
parent
1873feb5e8
commit
0b45c5e534
|
@ -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
|
||||||
|
|
|
@ -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">
|
||||||
|
<a class="<%- isInHomePaging(page.path, theme.menu[i]) ? 'current' : is_current(theme.menu[i]) ? 'current' : '' %>"
|
||||||
|
href="<%- url_for(theme.menu[i]) %>"><%= __(i.toLowerCase()) %></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="">
|
<% } %>
|
||||||
<a href="/">ARCHIVE</a>
|
<% if (theme.local_search.enable) { %>
|
||||||
</li>
|
<li>
|
||||||
<li class="">
|
<button class="search-btn btn popup-trigger"><i class="fa fa-search"></i></button>
|
||||||
<a href="/">ABOUT</a>
|
|
||||||
</li>
|
|
||||||
<li class="">
|
|
||||||
<a href=""><i class="fa fa-search"></i></a>
|
|
||||||
</li>
|
</li>
|
||||||
|
<%- next_js('local-search.js') %>
|
||||||
|
<% } %>
|
||||||
</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">
|
|
||||||
<a href="/">ARCHIVE</a>
|
|
||||||
</li>
|
|
||||||
<li class="drawer-menu-item">
|
|
||||||
<a href="/">ABOUT</a>
|
|
||||||
</li>
|
</li>
|
||||||
|
<% } %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue