balaramadurai / hugo-travelify-theme

Port of Aigars Silkalns's Wordpress theme Travelify to Hugo. Demo -
http://balaramadurai.github.io
MIT License
40 stars 27 forks source link

Menu entry begins with capitalization #10

Closed ohobby closed 6 years ago

ohobby commented 6 years ago

Hi, Menu entry with multiple words, each word begins with capitalization. This is not good.

thanks, Oliver

balaramadurai commented 6 years ago

Hi Oliver, Thank you for this issue.

I checked for documentation on Hugo. Unfortunately, Hugo formats the variable value to a capitalized form. If I force this to lower case, it can be difficult for other users. I am sorry, but I can't help with this one.

I have asked the discussion forum about this - https://discourse.gohugo.io/t/issue-menu-entry-begins-with-capitalization/11828

Thanks and have a great day! Bala

davidsneighbour commented 6 years ago

text-transform: lowercase; on the menu link in CSS should do the trick.

balaramadurai commented 6 years ago

@pkollitsch, thanks for the solution. This solution converts the entire menu entry into lower case, however that may not be what we want in certain cases.

@Oliver2r

So, the compromise solution is that use any case in case of main menu entries, but for sub menu entries, you'll get first letter caps.

Thanks and have a great day! Bala