Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Un-default blog post titles to title case #205

Open
ryanmacklin opened this issue Jul 22, 2022 · 3 comments
Open

Un-default blog post titles to title case #205

ryanmacklin opened this issue Jul 22, 2022 · 3 comments
Labels

Comments

@ryanmacklin
Copy link
Contributor

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
Copy link
Member

bwklein commented Jul 22, 2022

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.

<h1 class="posttitle">{{ title .Title }}</h1>

And

<h2 class="card-title text-dark">{{ title .Title }}</h2>

@ryanmacklin
Copy link
Contributor Author

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

@bwklein
Copy link
Member

bwklein commented Jul 22, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants