Fix tag count correctly.

We aren't count unpublished tags now.
This commit is contained in:
HyunSeob 2016-03-12 16:39:43 +09:00
parent 6ae0ee2c92
commit 665fb80c95
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
<% var profile = theme.customize.profile; %>
<% var tagCount = site.tags.filter(function(tag) { return tag.length; }).length; %>
<aside id="profile">
<div class="inner profile-inner">
<div class="base-info profile-block">
@ -14,8 +15,8 @@
<span><%= (site.posts.length > 1 ? __('profile.posts') : __('profile.post')) %></span>
</div>
<div class="article-info-block">
<%= site.tags.length %>
<span><%= (site.tags.length > 1 ? __('profile.tags') : __('profile.tag')) %></span>
<%= tagCount %>
<span><%= (tagCount > 1 ? __('profile.tags') : __('profile.tag')) %></span>
</div>
</div>
<% if(theme.customize.social_links) { %>