Fix tag count correctly.
We aren't count unpublished tags now.
This commit is contained in:
parent
6ae0ee2c92
commit
665fb80c95
|
@ -1,4 +1,5 @@
|
||||||
<% var profile = theme.customize.profile; %>
|
<% var profile = theme.customize.profile; %>
|
||||||
|
<% var tagCount = site.tags.filter(function(tag) { return tag.length; }).length; %>
|
||||||
<aside id="profile">
|
<aside id="profile">
|
||||||
<div class="inner profile-inner">
|
<div class="inner profile-inner">
|
||||||
<div class="base-info profile-block">
|
<div class="base-info profile-block">
|
||||||
|
@ -14,8 +15,8 @@
|
||||||
<span><%= (site.posts.length > 1 ? __('profile.posts') : __('profile.post')) %></span>
|
<span><%= (site.posts.length > 1 ? __('profile.posts') : __('profile.post')) %></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="article-info-block">
|
<div class="article-info-block">
|
||||||
<%= site.tags.length %>
|
<%= tagCount %>
|
||||||
<span><%= (site.tags.length > 1 ? __('profile.tags') : __('profile.tag')) %></span>
|
<span><%= (tagCount > 1 ? __('profile.tags') : __('profile.tag')) %></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% if(theme.customize.social_links) { %>
|
<% if(theme.customize.social_links) { %>
|
||||||
|
|
Loading…
Reference in New Issue