-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the title func follow some style guide #989
Comments
I think this would be useful 👍 |
@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! |
I'm from Norway, and we have no title case ... |
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 |
* AP style (new default) * Chicago style } Go style (what we have today) Fixes gohugoio#989
* AP style (new default) * Chicago style * Go style (what we have today) Fixes gohugoio#989
* AP style (new default) * Chicago style * Go style (what we have today) Fixes gohugoio#989
This works for the `title` func and the other places where Hugo makes title case. * AP style (new default) * Chicago style * Go style (what we have today) Fixes gohugoio#989
This works for the `title` func and the other places where Hugo makes title case. * AP style (new default) * Chicago style * Go style (what we have today) Fixes gohugoio#989
This works for the `title` func and the other places where Hugo makes title case. * AP style (new default) * Chicago style * Go style (what we have today) Fixes #989
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This template func could be very useful, if it was done properly.
Right now it title cases first char of each word.
So
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 ...
The text was updated successfully, but these errors were encountered: