I have a hexo blog with tags in the sidebar.
The code below lists all the tags for each of the blog posts.
What do I do to limit the tags listed, to only display the tags with 2 or more posts?
<% if (site.tags.length){ %>
<div class="widget-wrap">
<h3 class="widget-title"><%= __('tags') %></h3>
<div class="widget">
<%- list_tags({show_count: theme.show_count}) %>
</div>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.