-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Revert auto-capitalization of term titles #12115
Comments
As the original reporter of this issue on the Hugo forum, I'll chime in here.
I personally like having my tags rendered in lowercase, so I wrote them as lowercase in my YAML front matter. When I look at my tags page, now I see some tags like I think auto-capitalizing things like this is also a bad idea in general. When I write text, I assume that it will be rendered without changes to its case, so if I write |
OK, that's fine then (but I'm not doing the code work for this one :-)) |
I understand that we are also auto-capitalizing automatic section pages titles, but conceptually (from a content author's standpoint) section titles and terms are different things. There's also demand for disabling auto-capitalization of automatic section page titles: We could do something like that instead, letting it apply to section, term, and taxonomy pages. EDIT: The more I think about #9793, the more I like it. It's a good compromise. Casing of automatic titles will be consistent for section, taxonomy, and term. |
Whether to capitalize automatic page titles, applicable to section, taxonomy, and term pages. Default is true. Closes gohugoio#9793 Closes gohugoio#12115
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 front matter:
Produces this taxonomy page:
And this term page:
Alternative 1
You can change your templates from this:
to this:
...but that means you need one or two more templates to handle these page kinds.
Alternative 2
Do this in your site configuration...
...but that affects how the
strings.Title
function behaves as well.Alternative 3
Create a term page for every term and set the title to whatever you want...
...but you have to do that for every term.
The text was updated successfully, but these errors were encountered: