blog update

This commit is contained in:
James Feng Cao 2019-01-25 07:31:13 +08:00
parent 2f3fced01d
commit 60cfae5ff4
14 changed files with 295 additions and 627 deletions

View file

@ -43,56 +43,34 @@
<div class="index-left">
<div class="nav" id="nav">
<div class="avatar-name">
<div class="avatar">
<img src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
</div>
<div class="name">
<i><%= config.author %></i>
</div>
</div>
<div class="contents" id="nav-content">
<ul>
<li <% if(is_home()){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.home_dir || '/') %>">
<i class="iconfont icon-shouye1"></i>
<span><%= __('nav.home') %></span>
</a>
</li>
<li <% if(is_current('tags')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.tag_dir) %>">
<i class="iconfont icon-biaoqian1"></i>
<span><%= __('nav.tags') %></span>
</a>
</li>
<li <% if(is_current('archive')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.archive_dir) %>">
<i class="iconfont icon-guidang2"></i>
<span><%= __('nav.archives') %></span>
</a>
</li>
<li <% if(is_current('about')){ %> <%- "class=active" %> <% } %>>
<a href="<%= config.root %><%- 'about/' %>">
<i class="iconfont icon-guanyu2"></i>
<span><%= __('nav.about') %></span>
</a>
</li>
<%if(config.search && config.search.path){%>
<li>
<a id="search">
<i class="iconfont icon-sousuo1"></i>
<span><%= __('nav.search') %></span>
<a href="/uWeb/">
<i class="iconfont icon-shouye1"></i>
<span>HOME</span>
</a>
</li>
<% } %>
<li>
<a href="/uWeb/tags">
<i class="iconfont icon-biaoqian1"></i>
<span>TAGS</span>
</a>
</li>
<li>
<a href="/uWeb/archives">
<i class="iconfont icon-guidang2"></i>
<span>ARCHIVES</span>
</a>
</li>
</ul>
</div>
<%
if(is_post()){
// if(/[0-9]*\/[0-9]*\/[0-9]*\//.test(path)){
%>
<%- partial('./toc', {item: page, index: false}) %>
<% } %>
<div id="toc" class="toc-article">
</div>
</div>
@ -100,8 +78,8 @@
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
<input id="search-input"/>
<span id="begin-search"><%= __('search.search') %></span>
<input id="search-input">
<span id="begin-search">search</span>
</div>
<div class="search-result-container" id="search-result-container">

View file

@ -43,56 +43,34 @@
<div class="index-left">
<div class="nav" id="nav">
<div class="avatar-name">
<div class="avatar">
<img src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
</div>
<div class="name">
<i><%= config.author %></i>
</div>
</div>
<div class="contents" id="nav-content">
<ul>
<li <% if(is_home()){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.home_dir || '/') %>">
<i class="iconfont icon-shouye1"></i>
<span><%= __('nav.home') %></span>
</a>
</li>
<li <% if(is_current('tags')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.tag_dir) %>">
<i class="iconfont icon-biaoqian1"></i>
<span><%= __('nav.tags') %></span>
</a>
</li>
<li <% if(is_current('archive')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.archive_dir) %>">
<i class="iconfont icon-guidang2"></i>
<span><%= __('nav.archives') %></span>
</a>
</li>
<li <% if(is_current('about')){ %> <%- "class=active" %> <% } %>>
<a href="<%= config.root %><%- 'about/' %>">
<i class="iconfont icon-guanyu2"></i>
<span><%= __('nav.about') %></span>
</a>
</li>
<%if(config.search && config.search.path){%>
<li>
<a id="search">
<i class="iconfont icon-sousuo1"></i>
<span><%= __('nav.search') %></span>
<a href="/uWeb/">
<i class="iconfont icon-shouye1"></i>
<span>HOME</span>
</a>
</li>
<% } %>
<li>
<a href="/uWeb/tags">
<i class="iconfont icon-biaoqian1"></i>
<span>TAGS</span>
</a>
</li>
<li>
<a href="/uWeb/archives">
<i class="iconfont icon-guidang2"></i>
<span>ARCHIVES</span>
</a>
</li>
</ul>
</div>
<%
if(is_post()){
// if(/[0-9]*\/[0-9]*\/[0-9]*\//.test(path)){
%>
<%- partial('./toc', {item: page, index: false}) %>
<% } %>
<div id="toc" class="toc-article">
</div>
</div>
@ -100,8 +78,8 @@
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
<input id="search-input"/>
<span id="begin-search"><%= __('search.search') %></span>
<input id="search-input">
<span id="begin-search">search</span>
</div>
<div class="search-result-container" id="search-result-container">

View file

@ -43,56 +43,30 @@
<div class="index-left">
<div class="nav" id="nav">
<div class="avatar-name">
<div class="avatar">
<img src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
</div>
<div class="name">
<i><%= config.author %></i>
</div>
</div>
<div class="contents" id="nav-content">
<ul>
<li <% if(is_home()){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.home_dir || '/') %>">
<i class="iconfont icon-shouye1"></i>
<span><%= __('nav.home') %></span>
</a>
</li>
<li <% if(is_current('tags')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.tag_dir) %>">
<i class="iconfont icon-biaoqian1"></i>
<span><%= __('nav.tags') %></span>
</a>
</li>
<li <% if(is_current('archive')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.archive_dir) %>">
<i class="iconfont icon-guidang2"></i>
<span><%= __('nav.archives') %></span>
</a>
</li>
<li <% if(is_current('about')){ %> <%- "class=active" %> <% } %>>
<a href="<%= config.root %><%- 'about/' %>">
<i class="iconfont icon-guanyu2"></i>
<span><%= __('nav.about') %></span>
</a>
</li>
<%if(config.search && config.search.path){%>
<li>
<a id="search">
<i class="iconfont icon-sousuo1"></i>
<span><%= __('nav.search') %></span>
<a href="/uWeb/">
<i class="iconfont icon-shouye1"></i>
<span>HOME</span>
</a>
</li>
<% } %>
<li>
<a href="/uWeb/tags">
<i class="iconfont icon-biaoqian1"></i>
<span>TAGS</span>
</a>
</li>
<li class="active">
<a href="/uWeb/archives">
<i class="iconfont icon-guidang2"></i>
<span>ARCHIVES</span>
</a>
</li>
</ul>
</div>
<%
if(is_post()){
// if(/[0-9]*\/[0-9]*\/[0-9]*\//.test(path)){
%>
<%- partial('./toc', {item: page, index: false}) %>
<% } %>
</div>
@ -100,8 +74,8 @@
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
<input id="search-input"/>
<span id="begin-search"><%= __('search.search') %></span>
<input id="search-input">
<span id="begin-search">search</span>
</div>
<div class="search-result-container" id="search-result-container">

View file

@ -43,56 +43,30 @@
<div class="index-left">
<div class="nav" id="nav">
<div class="avatar-name">
<div class="avatar">
<img src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
</div>
<div class="name">
<i><%= config.author %></i>
</div>
</div>
<div class="contents" id="nav-content">
<ul>
<li <% if(is_home()){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.home_dir || '/') %>">
<i class="iconfont icon-shouye1"></i>
<span><%= __('nav.home') %></span>
</a>
</li>
<li <% if(is_current('tags')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.tag_dir) %>">
<i class="iconfont icon-biaoqian1"></i>
<span><%= __('nav.tags') %></span>
</a>
</li>
<li <% if(is_current('archive')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.archive_dir) %>">
<i class="iconfont icon-guidang2"></i>
<span><%= __('nav.archives') %></span>
</a>
</li>
<li <% if(is_current('about')){ %> <%- "class=active" %> <% } %>>
<a href="<%= config.root %><%- 'about/' %>">
<i class="iconfont icon-guanyu2"></i>
<span><%= __('nav.about') %></span>
</a>
</li>
<%if(config.search && config.search.path){%>
<li>
<a id="search">
<i class="iconfont icon-sousuo1"></i>
<span><%= __('nav.search') %></span>
<a href="/uWeb/">
<i class="iconfont icon-shouye1"></i>
<span>HOME</span>
</a>
</li>
<% } %>
<li>
<a href="/uWeb/tags">
<i class="iconfont icon-biaoqian1"></i>
<span>TAGS</span>
</a>
</li>
<li class="active">
<a href="/uWeb/archives">
<i class="iconfont icon-guidang2"></i>
<span>ARCHIVES</span>
</a>
</li>
</ul>
</div>
<%
if(is_post()){
// if(/[0-9]*\/[0-9]*\/[0-9]*\//.test(path)){
%>
<%- partial('./toc', {item: page, index: false}) %>
<% } %>
</div>
@ -100,8 +74,8 @@
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
<input id="search-input"/>
<span id="begin-search"><%= __('search.search') %></span>
<input id="search-input">
<span id="begin-search">search</span>
</div>
<div class="search-result-container" id="search-result-container">

View file

@ -43,56 +43,30 @@
<div class="index-left">
<div class="nav" id="nav">
<div class="avatar-name">
<div class="avatar">
<img src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
</div>
<div class="name">
<i><%= config.author %></i>
</div>
</div>
<div class="contents" id="nav-content">
<ul>
<li <% if(is_home()){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.home_dir || '/') %>">
<i class="iconfont icon-shouye1"></i>
<span><%= __('nav.home') %></span>
</a>
</li>
<li <% if(is_current('tags')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.tag_dir) %>">
<i class="iconfont icon-biaoqian1"></i>
<span><%= __('nav.tags') %></span>
</a>
</li>
<li <% if(is_current('archive')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.archive_dir) %>">
<i class="iconfont icon-guidang2"></i>
<span><%= __('nav.archives') %></span>
</a>
</li>
<li <% if(is_current('about')){ %> <%- "class=active" %> <% } %>>
<a href="<%= config.root %><%- 'about/' %>">
<i class="iconfont icon-guanyu2"></i>
<span><%= __('nav.about') %></span>
</a>
</li>
<%if(config.search && config.search.path){%>
<li>
<a id="search">
<i class="iconfont icon-sousuo1"></i>
<span><%= __('nav.search') %></span>
<a href="/uWeb/">
<i class="iconfont icon-shouye1"></i>
<span>HOME</span>
</a>
</li>
<% } %>
<li>
<a href="/uWeb/tags">
<i class="iconfont icon-biaoqian1"></i>
<span>TAGS</span>
</a>
</li>
<li class="active">
<a href="/uWeb/archives">
<i class="iconfont icon-guidang2"></i>
<span>ARCHIVES</span>
</a>
</li>
</ul>
</div>
<%
if(is_post()){
// if(/[0-9]*\/[0-9]*\/[0-9]*\//.test(path)){
%>
<%- partial('./toc', {item: page, index: false}) %>
<% } %>
</div>
@ -100,8 +74,8 @@
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
<input id="search-input"/>
<span id="begin-search"><%= __('search.search') %></span>
<input id="search-input">
<span id="begin-search">search</span>
</div>
<div class="search-result-container" id="search-result-container">

View file

@ -43,56 +43,30 @@
<div class="index-left">
<div class="nav" id="nav">
<div class="avatar-name">
<div class="avatar">
<img src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
</div>
<div class="name">
<i><%= config.author %></i>
</div>
</div>
<div class="contents" id="nav-content">
<ul>
<li <% if(is_home()){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.home_dir || '/') %>">
<i class="iconfont icon-shouye1"></i>
<span><%= __('nav.home') %></span>
</a>
</li>
<li <% if(is_current('tags')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.tag_dir) %>">
<i class="iconfont icon-biaoqian1"></i>
<span><%= __('nav.tags') %></span>
</a>
</li>
<li <% if(is_current('archive')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.archive_dir) %>">
<i class="iconfont icon-guidang2"></i>
<span><%= __('nav.archives') %></span>
</a>
</li>
<li <% if(is_current('about')){ %> <%- "class=active" %> <% } %>>
<a href="<%= config.root %><%- 'about/' %>">
<i class="iconfont icon-guanyu2"></i>
<span><%= __('nav.about') %></span>
</a>
</li>
<%if(config.search && config.search.path){%>
<li>
<a id="search">
<i class="iconfont icon-sousuo1"></i>
<span><%= __('nav.search') %></span>
<a href="/uWeb/">
<i class="iconfont icon-shouye1"></i>
<span>HOME</span>
</a>
</li>
<% } %>
<li>
<a href="/uWeb/tags">
<i class="iconfont icon-biaoqian1"></i>
<span>TAGS</span>
</a>
</li>
<li class="active">
<a href="/uWeb/archives">
<i class="iconfont icon-guidang2"></i>
<span>ARCHIVES</span>
</a>
</li>
</ul>
</div>
<%
if(is_post()){
// if(/[0-9]*\/[0-9]*\/[0-9]*\//.test(path)){
%>
<%- partial('./toc', {item: page, index: false}) %>
<% } %>
</div>
@ -100,8 +74,8 @@
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
<input id="search-input"/>
<span id="begin-search"><%= __('search.search') %></span>
<input id="search-input">
<span id="begin-search">search</span>
</div>
<div class="search-result-container" id="search-result-container">

View file

@ -43,56 +43,30 @@
<div class="index-left">
<div class="nav" id="nav">
<div class="avatar-name">
<div class="avatar">
<img src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
</div>
<div class="name">
<i><%= config.author %></i>
</div>
</div>
<div class="contents" id="nav-content">
<ul>
<li <% if(is_home()){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.home_dir || '/') %>">
<i class="iconfont icon-shouye1"></i>
<span><%= __('nav.home') %></span>
</a>
</li>
<li <% if(is_current('tags')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.tag_dir) %>">
<i class="iconfont icon-biaoqian1"></i>
<span><%= __('nav.tags') %></span>
</a>
</li>
<li <% if(is_current('archive')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.archive_dir) %>">
<i class="iconfont icon-guidang2"></i>
<span><%= __('nav.archives') %></span>
</a>
</li>
<li <% if(is_current('about')){ %> <%- "class=active" %> <% } %>>
<a href="<%= config.root %><%- 'about/' %>">
<i class="iconfont icon-guanyu2"></i>
<span><%= __('nav.about') %></span>
</a>
</li>
<%if(config.search && config.search.path){%>
<li>
<a id="search">
<i class="iconfont icon-sousuo1"></i>
<span><%= __('nav.search') %></span>
<a href="/uWeb/">
<i class="iconfont icon-shouye1"></i>
<span>HOME</span>
</a>
</li>
<% } %>
<li>
<a href="/uWeb/tags">
<i class="iconfont icon-biaoqian1"></i>
<span>TAGS</span>
</a>
</li>
<li class="active">
<a href="/uWeb/archives">
<i class="iconfont icon-guidang2"></i>
<span>ARCHIVES</span>
</a>
</li>
</ul>
</div>
<%
if(is_post()){
// if(/[0-9]*\/[0-9]*\/[0-9]*\//.test(path)){
%>
<%- partial('./toc', {item: page, index: false}) %>
<% } %>
</div>
@ -100,8 +74,8 @@
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
<input id="search-input"/>
<span id="begin-search"><%= __('search.search') %></span>
<input id="search-input">
<span id="begin-search">search</span>
</div>
<div class="search-result-container" id="search-result-container">

View file

@ -43,56 +43,34 @@
<div class="index-left">
<div class="nav" id="nav">
<div class="avatar-name">
<div class="avatar">
<img src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
</div>
<div class="name">
<i><%= config.author %></i>
</div>
</div>
<div class="contents" id="nav-content">
<ul>
<li <% if(is_home()){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.home_dir || '/') %>">
<i class="iconfont icon-shouye1"></i>
<span><%= __('nav.home') %></span>
</a>
</li>
<li <% if(is_current('tags')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.tag_dir) %>">
<i class="iconfont icon-biaoqian1"></i>
<span><%= __('nav.tags') %></span>
</a>
</li>
<li <% if(is_current('archive')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.archive_dir) %>">
<i class="iconfont icon-guidang2"></i>
<span><%= __('nav.archives') %></span>
</a>
</li>
<li <% if(is_current('about')){ %> <%- "class=active" %> <% } %>>
<a href="<%= config.root %><%- 'about/' %>">
<i class="iconfont icon-guanyu2"></i>
<span><%= __('nav.about') %></span>
</a>
</li>
<%if(config.search && config.search.path){%>
<li>
<a id="search">
<i class="iconfont icon-sousuo1"></i>
<span><%= __('nav.search') %></span>
<a href="/uWeb/">
<i class="iconfont icon-shouye1"></i>
<span>HOME</span>
</a>
</li>
<% } %>
<li>
<a href="/uWeb/tags">
<i class="iconfont icon-biaoqian1"></i>
<span>TAGS</span>
</a>
</li>
<li>
<a href="/uWeb/archives">
<i class="iconfont icon-guidang2"></i>
<span>ARCHIVES</span>
</a>
</li>
</ul>
</div>
<%
if(is_post()){
// if(/[0-9]*\/[0-9]*\/[0-9]*\//.test(path)){
%>
<%- partial('./toc', {item: page, index: false}) %>
<% } %>
<div id="toc" class="toc-article">
<ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#安装bc"><span class="toc-text">安装bc</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#配置文件-sdcard-uweb-cmds-txt如下"><span class="toc-text">配置文件/sdcard/uweb/cmds.txt如下</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#更多bc扩展库"><span class="toc-text">更多bc扩展库</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#使用扩展库以后cmds-txt配置如下"><span class="toc-text">使用扩展库以后cmds.txt配置如下</span></a></li></ol>
</div>
</div>
@ -100,8 +78,8 @@
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
<input id="search-input"/>
<span id="begin-search"><%= __('search.search') %></span>
<input id="search-input">
<span id="begin-search">search</span>
</div>
<div class="search-result-container" id="search-result-container">

View file

@ -43,56 +43,34 @@
<div class="index-left">
<div class="nav" id="nav">
<div class="avatar-name">
<div class="avatar">
<img src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
</div>
<div class="name">
<i><%= config.author %></i>
</div>
</div>
<div class="contents" id="nav-content">
<ul>
<li <% if(is_home()){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.home_dir || '/') %>">
<i class="iconfont icon-shouye1"></i>
<span><%= __('nav.home') %></span>
</a>
</li>
<li <% if(is_current('tags')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.tag_dir) %>">
<i class="iconfont icon-biaoqian1"></i>
<span><%= __('nav.tags') %></span>
</a>
</li>
<li <% if(is_current('archive')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.archive_dir) %>">
<i class="iconfont icon-guidang2"></i>
<span><%= __('nav.archives') %></span>
</a>
</li>
<li <% if(is_current('about')){ %> <%- "class=active" %> <% } %>>
<a href="<%= config.root %><%- 'about/' %>">
<i class="iconfont icon-guanyu2"></i>
<span><%= __('nav.about') %></span>
</a>
</li>
<%if(config.search && config.search.path){%>
<li>
<a id="search">
<i class="iconfont icon-sousuo1"></i>
<span><%= __('nav.search') %></span>
<a href="/uWeb/">
<i class="iconfont icon-shouye1"></i>
<span>HOME</span>
</a>
</li>
<% } %>
<li>
<a href="/uWeb/tags">
<i class="iconfont icon-biaoqian1"></i>
<span>TAGS</span>
</a>
</li>
<li>
<a href="/uWeb/archives">
<i class="iconfont icon-guidang2"></i>
<span>ARCHIVES</span>
</a>
</li>
</ul>
</div>
<%
if(is_post()){
// if(/[0-9]*\/[0-9]*\/[0-9]*\//.test(path)){
%>
<%- partial('./toc', {item: page, index: false}) %>
<% } %>
<div id="toc" class="toc-article">
<ol class="toc"><li class="toc-item toc-level-4"><a class="toc-link" href="#安装gnuplot"><span class="toc-text">安装gnuplot</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#配置文件-sdcard-uweb-cmds-txt如下"><span class="toc-text">配置文件/sdcard/uweb/cmds.txt如下</span></a></li></ol>
</div>
</div>
@ -100,8 +78,8 @@
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
<input id="search-input"/>
<span id="begin-search"><%= __('search.search') %></span>
<input id="search-input">
<span id="begin-search">search</span>
</div>
<div class="search-result-container" id="search-result-container">

View file

@ -43,56 +43,34 @@
<div class="index-left">
<div class="nav" id="nav">
<div class="avatar-name">
<div class="avatar">
<img src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
</div>
<div class="name">
<i><%= config.author %></i>
</div>
</div>
<div class="contents" id="nav-content">
<ul>
<li <% if(is_home()){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.home_dir || '/') %>">
<i class="iconfont icon-shouye1"></i>
<span><%= __('nav.home') %></span>
</a>
</li>
<li <% if(is_current('tags')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.tag_dir) %>">
<i class="iconfont icon-biaoqian1"></i>
<span><%= __('nav.tags') %></span>
</a>
</li>
<li <% if(is_current('archive')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.archive_dir) %>">
<i class="iconfont icon-guidang2"></i>
<span><%= __('nav.archives') %></span>
</a>
</li>
<li <% if(is_current('about')){ %> <%- "class=active" %> <% } %>>
<a href="<%= config.root %><%- 'about/' %>">
<i class="iconfont icon-guanyu2"></i>
<span><%= __('nav.about') %></span>
</a>
</li>
<%if(config.search && config.search.path){%>
<li>
<a id="search">
<i class="iconfont icon-sousuo1"></i>
<span><%= __('nav.search') %></span>
<a href="/uWeb/">
<i class="iconfont icon-shouye1"></i>
<span>HOME</span>
</a>
</li>
<% } %>
<li>
<a href="/uWeb/tags">
<i class="iconfont icon-biaoqian1"></i>
<span>TAGS</span>
</a>
</li>
<li>
<a href="/uWeb/archives">
<i class="iconfont icon-guidang2"></i>
<span>ARCHIVES</span>
</a>
</li>
</ul>
</div>
<%
if(is_post()){
// if(/[0-9]*\/[0-9]*\/[0-9]*\//.test(path)){
%>
<%- partial('./toc', {item: page, index: false}) %>
<% } %>
<div id="toc" class="toc-article">
</div>
</div>
@ -100,8 +78,8 @@
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
<input id="search-input"/>
<span id="begin-search"><%= __('search.search') %></span>
<input id="search-input">
<span id="begin-search">search</span>
</div>
<div class="search-result-container" id="search-result-container">

View file

@ -43,56 +43,30 @@
<div class="index-left">
<div class="nav" id="nav">
<div class="avatar-name">
<div class="avatar">
<img src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
</div>
<div class="name">
<i><%= config.author %></i>
</div>
</div>
<div class="contents" id="nav-content">
<ul>
<li <% if(is_home()){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.home_dir || '/') %>">
<li class="active">
<a href="/uWeb/">
<i class="iconfont icon-shouye1"></i>
<span><%= __('nav.home') %></span>
<span>HOME</span>
</a>
</li>
<li <% if(is_current('tags')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.tag_dir) %>">
<i class="iconfont icon-biaoqian1"></i>
<span><%= __('nav.tags') %></span>
</a>
</li>
<li <% if(is_current('archive')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.archive_dir) %>">
<i class="iconfont icon-guidang2"></i>
<span><%= __('nav.archives') %></span>
</a>
</li>
<li <% if(is_current('about')){ %> <%- "class=active" %> <% } %>>
<a href="<%= config.root %><%- 'about/' %>">
<i class="iconfont icon-guanyu2"></i>
<span><%= __('nav.about') %></span>
</a>
</li>
<%if(config.search && config.search.path){%>
<li>
<a id="search">
<i class="iconfont icon-sousuo1"></i>
<span><%= __('nav.search') %></span>
<a href="/uWeb/tags">
<i class="iconfont icon-biaoqian1"></i>
<span>TAGS</span>
</a>
</li>
<% } %>
<li>
<a href="/uWeb/archives">
<i class="iconfont icon-guidang2"></i>
<span>ARCHIVES</span>
</a>
</li>
</ul>
</div>
<%
if(is_post()){
// if(/[0-9]*\/[0-9]*\/[0-9]*\//.test(path)){
%>
<%- partial('./toc', {item: page, index: false}) %>
<% } %>
</div>
@ -100,8 +74,8 @@
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
<input id="search-input"/>
<span id="begin-search"><%= __('search.search') %></span>
<input id="search-input">
<span id="begin-search">search</span>
</div>
<div class="search-result-container" id="search-result-container">

View file

@ -43,56 +43,34 @@
<div class="index-left">
<div class="nav" id="nav">
<div class="avatar-name">
<div class="avatar">
<img src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
</div>
<div class="name">
<i><%= config.author %></i>
</div>
</div>
<div class="contents" id="nav-content">
<ul>
<li <% if(is_home()){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.home_dir || '/') %>">
<i class="iconfont icon-shouye1"></i>
<span><%= __('nav.home') %></span>
</a>
</li>
<li <% if(is_current('tags')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.tag_dir) %>">
<i class="iconfont icon-biaoqian1"></i>
<span><%= __('nav.tags') %></span>
</a>
</li>
<li <% if(is_current('archive')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.archive_dir) %>">
<i class="iconfont icon-guidang2"></i>
<span><%= __('nav.archives') %></span>
</a>
</li>
<li <% if(is_current('about')){ %> <%- "class=active" %> <% } %>>
<a href="<%= config.root %><%- 'about/' %>">
<i class="iconfont icon-guanyu2"></i>
<span><%= __('nav.about') %></span>
</a>
</li>
<%if(config.search && config.search.path){%>
<li>
<a id="search">
<i class="iconfont icon-sousuo1"></i>
<span><%= __('nav.search') %></span>
<a href="/uWeb/">
<i class="iconfont icon-shouye1"></i>
<span>HOME</span>
</a>
</li>
<% } %>
<li>
<a href="/uWeb/tags">
<i class="iconfont icon-biaoqian1"></i>
<span>TAGS</span>
</a>
</li>
<li>
<a href="/uWeb/archives">
<i class="iconfont icon-guidang2"></i>
<span>ARCHIVES</span>
</a>
</li>
</ul>
</div>
<%
if(is_post()){
// if(/[0-9]*\/[0-9]*\/[0-9]*\//.test(path)){
%>
<%- partial('./toc', {item: page, index: false}) %>
<% } %>
<div id="toc" class="toc-article">
</div>
</div>
@ -100,8 +78,8 @@
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
<input id="search-input"/>
<span id="begin-search"><%= __('search.search') %></span>
<input id="search-input">
<span id="begin-search">search</span>
</div>
<div class="search-result-container" id="search-result-container">

View file

@ -43,56 +43,34 @@
<div class="index-left">
<div class="nav" id="nav">
<div class="avatar-name">
<div class="avatar">
<img src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
</div>
<div class="name">
<i><%= config.author %></i>
</div>
</div>
<div class="contents" id="nav-content">
<ul>
<li <% if(is_home()){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.home_dir || '/') %>">
<i class="iconfont icon-shouye1"></i>
<span><%= __('nav.home') %></span>
</a>
</li>
<li <% if(is_current('tags')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.tag_dir) %>">
<i class="iconfont icon-biaoqian1"></i>
<span><%= __('nav.tags') %></span>
</a>
</li>
<li <% if(is_current('archive')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.archive_dir) %>">
<i class="iconfont icon-guidang2"></i>
<span><%= __('nav.archives') %></span>
</a>
</li>
<li <% if(is_current('about')){ %> <%- "class=active" %> <% } %>>
<a href="<%= config.root %><%- 'about/' %>">
<i class="iconfont icon-guanyu2"></i>
<span><%= __('nav.about') %></span>
</a>
</li>
<%if(config.search && config.search.path){%>
<li>
<a id="search">
<i class="iconfont icon-sousuo1"></i>
<span><%= __('nav.search') %></span>
<a href="/uWeb/">
<i class="iconfont icon-shouye1"></i>
<span>HOME</span>
</a>
</li>
<% } %>
<li>
<a href="/uWeb/tags">
<i class="iconfont icon-biaoqian1"></i>
<span>TAGS</span>
</a>
</li>
<li>
<a href="/uWeb/archives">
<i class="iconfont icon-guidang2"></i>
<span>ARCHIVES</span>
</a>
</li>
</ul>
</div>
<%
if(is_post()){
// if(/[0-9]*\/[0-9]*\/[0-9]*\//.test(path)){
%>
<%- partial('./toc', {item: page, index: false}) %>
<% } %>
<div id="toc" class="toc-article">
</div>
</div>
@ -100,8 +78,8 @@
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
<input id="search-input"/>
<span id="begin-search"><%= __('search.search') %></span>
<input id="search-input">
<span id="begin-search">search</span>
</div>
<div class="search-result-container" id="search-result-container">

View file

@ -43,56 +43,34 @@
<div class="index-left">
<div class="nav" id="nav">
<div class="avatar-name">
<div class="avatar">
<img src="<%= config['root'] %><%= config['sidebar-avatar'] %>" />
</div>
<div class="name">
<i><%= config.author %></i>
</div>
</div>
<div class="contents" id="nav-content">
<ul>
<li <% if(is_home()){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.home_dir || '/') %>">
<i class="iconfont icon-shouye1"></i>
<span><%= __('nav.home') %></span>
</a>
</li>
<li <% if(is_current('tags')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.tag_dir) %>">
<i class="iconfont icon-biaoqian1"></i>
<span><%= __('nav.tags') %></span>
</a>
</li>
<li <% if(is_current('archive')){ %> <%- "class=active" %> <% } %>>
<a href="<%= url_for(config.archive_dir) %>">
<i class="iconfont icon-guidang2"></i>
<span><%= __('nav.archives') %></span>
</a>
</li>
<li <% if(is_current('about')){ %> <%- "class=active" %> <% } %>>
<a href="<%= config.root %><%- 'about/' %>">
<i class="iconfont icon-guanyu2"></i>
<span><%= __('nav.about') %></span>
</a>
</li>
<%if(config.search && config.search.path){%>
<li>
<a id="search">
<i class="iconfont icon-sousuo1"></i>
<span><%= __('nav.search') %></span>
<a href="/uWeb/">
<i class="iconfont icon-shouye1"></i>
<span>HOME</span>
</a>
</li>
<% } %>
<li>
<a href="/uWeb/tags">
<i class="iconfont icon-biaoqian1"></i>
<span>TAGS</span>
</a>
</li>
<li>
<a href="/uWeb/archives">
<i class="iconfont icon-guidang2"></i>
<span>ARCHIVES</span>
</a>
</li>
</ul>
</div>
<%
if(is_post()){
// if(/[0-9]*\/[0-9]*\/[0-9]*\//.test(path)){
%>
<%- partial('./toc', {item: page, index: false}) %>
<% } %>
<div id="toc" class="toc-article">
</div>
</div>
@ -100,8 +78,8 @@
<div class="search-container">
<div class="search-input">
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
<input id="search-input"/>
<span id="begin-search"><%= __('search.search') %></span>
<input id="search-input">
<span id="begin-search">search</span>
</div>
<div class="search-result-container" id="search-result-container">