Skip to content

Commit

Permalink
style: tab to space 制表符转空格
Browse files Browse the repository at this point in the history
Replace all tab with space.
Indent by 4 spaces at a time.

将每个 Tab 制表符替换为四个空格,
这是个人习惯。
  • Loading branch information
MOxFIVE committed Dec 21, 2015
1 parent 0ee5fbc commit 80c2b5a
Show file tree
Hide file tree
Showing 18 changed files with 1,069 additions and 1,069 deletions.
26 changes: 13 additions & 13 deletions layout/_partial/after-footer.ejs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<% if (!is_page() && !is_post()){ %>
<script>
var yiliaConfig = {
fancybox: false,
mathjax: <%=theme.mathjax%>,
animate: <%=theme.animate%>,
isHome: <%=is_home()%>,
isPost: <%=is_post()%>,
isArchive: <%=is_archive()%>,
isTag: <%=is_tag()%>,
isCategory: <%=is_category()%>,
open_in_new: <%=theme.open_in_new%>
}
</script>
<script>
var yiliaConfig = {
fancybox: false,
mathjax: <%=theme.mathjax%>,
animate: <%=theme.animate%>,
isHome: <%=is_home()%>,
isPost: <%=is_post()%>,
isArchive: <%=is_archive()%>,
isTag: <%=is_tag()%>,
isCategory: <%=is_category()%>,
open_in_new: <%=theme.open_in_new%>
}
</script>
<% } %>

<%- js('http://7.url.cn/edu/jslib/comb/require-2.1.6,jquery-1.9.1.min') %>
Expand Down
6 changes: 3 additions & 3 deletions layout/_partial/archive-post.ejs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<article class="archive-article archive-type-<%= post.layout %>">
<div class="archive-article-inner">
<header class="archive-article-header">
<div class="article-meta">
<%- partial('post/date', {class_name: 'archive-article-date', date_format: 'MMM D'}) %>
<div class="article-meta">
<%- partial('post/date', {class_name: 'archive-article-date', date_format: 'MMM D'}) %>
</div>
<%- partial('post/title', {class_name: 'archive-article-title'}) %>
<%- partial('post/title', {class_name: 'archive-article-title'}) %>
<div class="article-info info-on-archive">
<%- partial('post/category') %>
<%- partial('post/tag') %>
Expand Down
212 changes: 106 additions & 106 deletions layout/_partial/left-col.ejs
Original file line number Diff line number Diff line change
@@ -1,115 +1,115 @@
<div class="overlay"></div>
<div class="intrude-less">
<header id="header" class="inner">
<a href="/" class="profilepic">
<% if (theme.animate){ %>
<img lazy-src="<%=theme.avatar%>" class="js-avatar">
<%}else{%>
<img src="<%=theme.avatar%>" class="js-avatar" style="width: 100%;height: 100%;opacity: 1;">
<%}%>
</a>
<header id="header" class="inner">
<a href="/" class="profilepic">
<% if (theme.animate){ %>
<img lazy-src="<%=theme.avatar%>" class="js-avatar">
<%}else{%>
<img src="<%=theme.avatar%>" class="js-avatar" style="width: 100%;height: 100%;opacity: 1;">
<%}%>
</a>

<hgroup>
<h1 class="header-author"><a href="/"><%=theme.author%></a></h1>
</hgroup>
<hgroup>
<h1 class="header-author"><a href="/"><%=theme.author%></a></h1>
</hgroup>

<% if (theme.subtitle){ %>
<p class="header-subtitle"><%=theme.subtitle%></p>
<%}%>
<% if (theme.search_box){ %>
<form><input type="text" class="search" placeholder=" Search..."></form>
<%}%>
<% if (theme.subtitle){ %>
<p class="header-subtitle"><%=theme.subtitle%></p>
<%}%>
<% if (theme.search_box){ %>
<form><input type="text" class="search" placeholder=" Search..."></form>
<%}%>


<%if(theme.tagcloud){%>
<div id="switch-btn" class="switch-btn">
<div class="icon">
<div class="icon-ctn">
<div class="icon-wrap icon-house" data-idx="0">
<div class="birdhouse"></div>
<div class="birdhouse_holes"></div>
</div>
<div class="icon-wrap icon-ribbon hide" data-idx="1">
<div class="ribbon"></div>
</div>
<%if(theme.friends && theme.friends.length != 0){%>
<div class="icon-wrap icon-link hide" data-idx="2">
<div class="loopback_l"></div>
<div class="loopback_r"></div>
</div>
<%}%>
<%if(theme.aboutme){%>
<div class="icon-wrap icon-me hide" data-idx="3">
<div class="user"></div>
<div class="shoulder"></div>
</div>
<%}%>
</div>
</div>
<div class="tips-box hide">
<div class="tips-arrow"></div>
<ul class="tips-inner">
<li>菜单</li>
<li>标签</li>
<%if(theme.friends && theme.friends.length != 0){%>
<li>友情链接</li>
<%}%>
<%if(theme.aboutme){%>
<li>关于我</li>
<%}%>
</ul>
</div>
</div>
<%}%>
<%if(theme.tagcloud){%>
<div id="switch-btn" class="switch-btn">
<div class="icon">
<div class="icon-ctn">
<div class="icon-wrap icon-house" data-idx="0">
<div class="birdhouse"></div>
<div class="birdhouse_holes"></div>
</div>
<div class="icon-wrap icon-ribbon hide" data-idx="1">
<div class="ribbon"></div>
</div>
<%if(theme.friends && theme.friends.length != 0){%>
<div class="icon-wrap icon-link hide" data-idx="2">
<div class="loopback_l"></div>
<div class="loopback_r"></div>
</div>
<%}%>
<%if(theme.aboutme){%>
<div class="icon-wrap icon-me hide" data-idx="3">
<div class="user"></div>
<div class="shoulder"></div>
</div>
<%}%>
</div>
</div>
<div class="tips-box hide">
<div class="tips-arrow"></div>
<ul class="tips-inner">
<li>菜单</li>
<li>标签</li>
<%if(theme.friends && theme.friends.length != 0){%>
<li>友情链接</li>
<%}%>
<%if(theme.aboutme){%>
<li>关于我</li>
<%}%>
</ul>
</div>
</div>
<%}%>

<div id="switch-area" class="switch-area">
<div class="switch-wrap">
<section class="switch-part switch-part1">
<nav class="header-menu">
<ul>
<% for (var i in theme.menu){ %>
<li><a href="<%- url_for(theme.menu[i]) %>"><%= i %></a></li>
<%}%>
</ul>
</nav>
<nav class="header-nav">
<ul class="social">
<% for (var i in theme.subnav){ %>
<li id="<%= i %>"><a class="<%= i %>" target="_blank" href="<%- url_for(theme.subnav[i]) %>" title="<%= i %>"></a></li>
<%}%>
</ul>
</nav>
</section>
<%if(theme.tagcloud){%>
<section class="switch-part switch-part2">
<div class="widget tagcloud" id="js-tagcloud">
<%- tagcloud() %>
</div>
</section>
<%}%>
<%if(theme.friends && theme.friends.length != 0){%>
<section class="switch-part switch-part3">
<div id="js-friends">
<% for (var i in theme.friends){ %>
<a target="_blank" class="main-nav-link switch-friends-link" href="<%- url_for(theme.friends[i]) %>"><%= i %></a>
<% } %>
</div>
</section>
<%}%>
<div id="switch-area" class="switch-area">
<div class="switch-wrap">
<section class="switch-part switch-part1">
<nav class="header-menu">
<ul>
<% for (var i in theme.menu){ %>
<li><a href="<%- url_for(theme.menu[i]) %>"><%= i %></a></li>
<%}%>
</ul>
</nav>
<nav class="header-nav">
<ul class="social">
<% for (var i in theme.subnav){ %>
<li id="<%= i %>"><a class="<%= i %>" target="_blank" href="<%- url_for(theme.subnav[i]) %>" title="<%= i %>"></a></li>
<%}%>
</ul>
</nav>
</section>
<%if(theme.tagcloud){%>
<section class="switch-part switch-part2">
<div class="widget tagcloud" id="js-tagcloud">
<%- tagcloud() %>
</div>
</section>
<%}%>
<%if(theme.friends && theme.friends.length != 0){%>
<section class="switch-part switch-part3">
<div id="js-friends">
<% for (var i in theme.friends){ %>
<a target="_blank" class="main-nav-link switch-friends-link" href="<%- url_for(theme.friends[i]) %>"><%= i %></a>
<% } %>
</div>
</section>
<%}%>

<%if(theme.aboutme){%>
<%if(!theme.friends){%>
<section class="switch-part switch-part3">
<%}else{%>
<section class="switch-part switch-part4">
<%}%>
<div id="js-aboutme"><%=theme.aboutme%></div>
</section>
<%}%>
</div>
</div>
</header>
<%if(theme.aboutme){%>
<%if(!theme.friends){%>
<section class="switch-part switch-part3">
<%}else{%>
<section class="switch-part switch-part4">
<%}%>
<div id="js-aboutme"><%=theme.aboutme%></div>
</section>
<%}%>
</div>
</div>
</header>
</div>
64 changes: 32 additions & 32 deletions layout/_partial/mobile-nav.ejs
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
<nav id="mobile-nav">
<div class="overlay">
<div class="slider-trigger"></div>
<h1 class="header-author js-mobile-header hide"><a href="/" title="回到主页"><%=theme.author%></a></h1>
</div>
<div class="intrude-less">
<header id="header" class="inner">
<a href="/" class="profilepic">
<img lazy-src="<%=theme.avatar%>" class="js-avatar">
</a>
<hgroup>
<h1 class="header-author"><a href="/" title="回到主页"><%=theme.author%></a></h1>
</hgroup>
<% if (theme.subtitle){ %>
<p class="header-subtitle"><%=theme.subtitle%></p>
<%}%>
<nav class="header-menu">
<ul>
<% for (var i in theme.menu){ %>
<li><a href="<%- url_for(theme.menu[i]) %>"><%= i %></a></li>
<%}%>
<div class="clearfix"></div>
</ul>
</nav>
<nav class="header-nav">
<ul class="social">
<% for (var i in theme.subnav){ %>
<li id="<%= i %>"><a class="<%= i %>" target="_blank" href="<%- url_for(theme.subnav[i]) %>" title="<%= i %>"></a></li>
<%}%>
</ul>
</nav>
</header>
</div>
<div class="overlay">
<div class="slider-trigger"></div>
<h1 class="header-author js-mobile-header hide"><a href="/" title="回到主页"><%=theme.author%></a></h1>
</div>
<div class="intrude-less">
<header id="header" class="inner">
<a href="/" class="profilepic">
<img lazy-src="<%=theme.avatar%>" class="js-avatar">
</a>
<hgroup>
<h1 class="header-author"><a href="/" title="回到主页"><%=theme.author%></a></h1>
</hgroup>
<% if (theme.subtitle){ %>
<p class="header-subtitle"><%=theme.subtitle%></p>
<%}%>
<nav class="header-menu">
<ul>
<% for (var i in theme.menu){ %>
<li><a href="<%- url_for(theme.menu[i]) %>"><%= i %></a></li>
<%}%>
<div class="clearfix"></div>
</ul>
</nav>
<nav class="header-nav">
<ul class="social">
<% for (var i in theme.subnav){ %>
<li id="<%= i %>"><a class="<%= i %>" target="_blank" href="<%- url_for(theme.subnav[i]) %>" title="<%= i %>"></a></li>
<%}%>
</ul>
</nav>
</header>
</div>
</nav>
16 changes: 8 additions & 8 deletions layout/_partial/post/category.ejs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<% if (post.categories && post.categories.length){ %>
<div class="article-category tagcloud">
<%- list_categories(post.categories, {
show_count: false,
class: 'article-category',
style: 'none',
separator: ''
}) %>
</div>
<div class="article-category tagcloud">
<%- list_categories(post.categories, {
show_count: false,
class: 'article-category',
style: 'none',
separator: ''
}) %>
</div>
<% } %>
2 changes: 1 addition & 1 deletion layout/_partial/post/date.ejs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<a href="<%- url_for(post.path) %>" class="<%= class_name %>">
<time datetime="<%= date_xml(post.date) %>" itemprop="datePublished"><%= date(post.date, date_format) %></time>
<time datetime="<%= date_xml(post.date) %>" itemprop="datePublished"><%= date(post.date, date_format) %></time>
</a>
32 changes: 16 additions & 16 deletions layout/_partial/post/duoshuo.ejs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<div class="duoshuo" id="comments">
<!-- 多说评论框 start -->
<div class="ds-thread" data-thread-key="<%=key%>" data-title="<%=title%>" data-url="<%=url%>"></div>
<!-- 多说评论框 end -->
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"<%=theme.duoshuo%>"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<!-- 多说公共JS代码 end -->
<!-- 多说评论框 start -->
<div class="ds-thread" data-thread-key="<%=key%>" data-title="<%=title%>" data-url="<%=url%>"></div>
<!-- 多说评论框 end -->
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"<%=theme.duoshuo%>"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<!-- 多说公共JS代码 end -->
</div>
Loading

0 comments on commit 80c2b5a

Please sign in to comment.