thegooddocsproject / website-hugo

Hugo based website for the project.
Other
6 stars 22 forks source link

Un-default blog post titles to title case #205

Open ryanmacklin opened 2 years ago

ryanmacklin commented 2 years ago

I want as part of our style guide to default to sentence case in headers, including the title, to line up with current cognitive accessibility practices. So I'd like to turn off the auto-title casing. Am I correct in reading that the system is automatically setting blog titles in title case?

bwklein commented 2 years ago

Using the Hugo 'Title' function. See the following locations in the code where this function is used. There might be others, these links are just for quick reference.

https://github.com/thegooddocsproject/website-hugo/blob/606cf8854d65d32e23002fd81e9904358a3010b2/layouts/blog/single.html#L18

And

https://github.com/thegooddocsproject/website-hugo/blob/606cf8854d65d32e23002fd81e9904358a3010b2/layouts/partials/list-partials/postbox.html#L17

ryanmacklin commented 2 years ago

Rad. This sounds like a small thing that we could assign to me, yeah?

bwklein commented 2 years ago

Sure, and search through the rest of the layout files for similar functions.