portfolYOU icon indicating copy to clipboard operation
portfolYOU copied to clipboard

Allow Hiding Skill's Percentage

Open LaQuay opened this issue 2 years ago • 5 comments

This gives the possibility to the developer of deciding if the % is shown or not.

LaQuay avatar Oct 10 '21 18:10 LaQuay

Hi, thanks for your fast response. Maybe I did not explain it very well. The idea of this PR is to let the user have the possibility of having the bar with a percentage but hiding the percentage label.

If your concern is more about preventing breaking the existing sites, I could just add a check in the new if, checking if the attr exists.

LaQuay avatar Oct 11 '21 07:10 LaQuay

My bad, didn't understand it that way. For the other approach you are proposing, I think it would be better if the showPercentage is a site-level configuration in _config.yml for consistency.

YoussefRaafatNasry avatar Oct 11 '21 20:10 YoussefRaafatNasry

Hi, sorry for the late reply. I did not get the notification.

With your proposal, you cannot decide whether you want for some and not for others. There are different sections and with the solution, I propose you can do several things. With your proposal, it is either YES or NO.

LaQuay avatar Oct 24 '21 18:10 LaQuay

I don't understand why we might need to hide the percentage label for some skills and not for others. This behavior seems inconsistent.

YoussefRaafatNasry avatar Nov 12 '21 08:11 YoussefRaafatNasry

you can instead just do something like {% unless hidePercentage == true %} so it doesnt break existing pages right? this way it will only hide if the variable is defined and set to true. if its not defined, nothing will change.

Edit: like this here.

sakgoyal avatar Aug 07 '22 00:08 sakgoyal