Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make the title func follow some style guide #989
This template func could be very useful, if it was done properly.
Right now it title cases first char of each word.
This is a title => "This Is A Title"
From the doc:
Have a look at http://titlecapitalization.com/
Pick a style, but it would cool if AP style was the default, then add an option for the other two.
Do not underestimate the importance of this.
@anthonyfok - you are the style guide / copy edit expert in here. What do you think? I can implement this if more people than me thinks it is important ...
@bep: Hoho! You are flattering me! I am no expert. ;-)
But yes, I think what you suggest would be a great thing to have.
The only concern I have is that languages other than English may have different styles/rules. For example, it seems to me that French titles tend to use "sentence case" rather than "title case". But I think I am worrying too much. ;-)
English is most likely the most-used language for Hugo and for any static website generator / CMS out there, so I'd say it is a very valuable feature and a noble effort. Thank you for taking this initiative!
Note/Update: This issue is marked as stale, and I may have said something earlier about "opening a thread on the discussion forum". Please don't.
If this is a bug and you can still reproduce this error on the latest
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
I'd not say it is a bug, but...
My actual use case is to display all category names of a site, and I'm in a dilemma. If I use