Skip to content

Commit

Permalink
Changes for Hexo 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Jan 25, 2013
1 parent 323e61a commit 6fb6815
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion layout/_partial/post/category.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if (item.categories){ %>
<% if (item.categories.length){ %>
<%
var cats = [];
item.categories.forEach(function(cat){
Expand Down
2 changes: 1 addition & 1 deletion layout/_partial/post/tag.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if (item.tags){ %>
<% if (item.tags.length){ %>
<%
var tags = [];
item.tags.forEach(function(tag){
Expand Down
4 changes: 2 additions & 2 deletions layout/_widget/category.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<div class="widget tag">
<h3 class="title"><%= __('categories') %></h3>
<ul class="entry">
<% site.categories.each(function(item){ %>
<li><a href="<%- config.root %><%- item.path %>"><%= item.name %></a><small><%= item.length %></small></li>
<% site.categories.sort('name').each(function(item){ %>
<li><a href="<%- config.root %><%- item.path %>"><%= item.name %></a><small><%= item.posts.length %></small></li>
<% }); %>
</ul>
</div>
Expand Down
4 changes: 2 additions & 2 deletions layout/_widget/tag.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<div class="widget tag">
<h3 class="title"><%= __('tags') %></h3>
<ul class="entry">
<% site.tags.each(function(item){ %>
<li><a href="<%- config.root %><%- item.path %>"><%= item.name %></a><small><%= item.length %></small></li>
<% site.tags.sort('name').each(function(item){ %>
<li><a href="<%- config.root %><%- item.path %>"><%= item.name %></a><small><%= item.posts.length %></small></li>
<% }); %>
</ul>
</div>
Expand Down

0 comments on commit 6fb6815

Please sign in to comment.