use total follow count for home and stats page

This commit is contained in:
Kyle Drake 2019-06-28 12:24:56 -07:00
parent ee94e4e540
commit 880f70477b
2 changed files with 4 additions and 2 deletions

View file

@ -98,8 +98,9 @@
<% end %>
</div>
<div class="col col-50">
<% follow_count = site.follows.count %>
<div><strong><%= site.views.format_large_number %></strong> views</div>
<div><strong><%= site.follow_count.format_large_number %></strong> follower<%= site.follow_count == 1 ? '' : 's' %></div>
<div><strong><%= follow_count.format_large_number %></strong> follower<%= follow_count == 1 ? '' : 's' %></div>
</div>
</div>
</div>

View file

@ -258,8 +258,9 @@
<% end %>
</div>
<div class="col col-50">
<% follow_count = site.follows.count %>
<div><strong><%= site.views.format_large_number %></strong> views</div>
<div><strong><%= site.follow_count.format_large_number %></strong> follower<%= site.follow_count == 1 ? '' : 's' %></div>
<div><strong><%= follow_count.format_large_number %></strong> follower<%= follow_count == 1 ? '' : 's' %></div>
</div>
</div>
</div>