Mainroad icon indicating copy to clipboard operation
Mainroad copied to clipboard

Add a minimum value to display tags in widget

Open guyou opened this issue 4 years ago • 2 comments

The tag list in the Tag widget can be very long. With such feature, it is possible to limit to the most used tags.

guyou avatar Nov 15 '20 14:11 guyou

Yes, you're right, this pull-request is not so focussed in containing the tag list under a given number. It is most oriented on filtering not so interesting tags as they are not so reused.

Personally, I find it useful as I have plenty of tag used a single time. And I imagine that a tag used only once is not really interesting to discover content on my blog.

guyou avatar Dec 10 '20 20:12 guyou

Yes, you're right, this pull-request is not so focussed in containing the tag list under a given number. It is most oriented on filtering not so interesting tags as they are not so reused.

As I said, I understand that this feature can be useful, but not for the theme itself. Why? Because it doesn't solve our problem. Our problem still here. So first of all we need a limiter, not a specific filter.

Personally, I find it useful as I have plenty of tag used a single time. And I imagine that a tag used only once is not really interesting to discover content on my blog.

It's confusing. You have plenty of one-post tags, you don't want to show them in the widget, but you consider them as valuable nonetheless. How many one-post tags turned to two-post tags? I think there are only a few of them in the best-case scenario.

Anyhow, if you need this kind of functionality, you should make a custom widget and place it inside layouts/partials/widgets within the site's root. Don't forget to activate your widget inside the config file.


I plan to close this PR if you don't mind. The problem is real, but the solution must be reconsidered and generalized. If we want to solve the problem, then I think we need a simple limiter.

Vimux avatar Dec 15 '20 18:12 Vimux