Make String Lowercase in Hugo

- 1 minute read

Hugo offers many special functions that we can include in our templates.

Some of these functions can be used to manipulate strings.

Link to this section Convert to lowercase

Making a string lowercase is a piece of cake:

<p>{{ lower $uppercase_string }}</p>

Link to this section Convert to uppercase

And making a string uppercase is very similar:

<p>{{ upper $lowercase_string }}</p>

Link to this section Conclusion

There are plenty of other built-in string functions provided by Hugo.

But I find myself using the lower function all the time.

I hope this article helped you!