# Variable and Parameter Names in Hugo (featuring camelCase⁠🐫 and snake_case⁠🐍)Updated  2022-April-21

## News

2022-August-25  As of today, this evolving⁠[1] article has been on the web for 1 year.🎂

## Terminology

A variable name that a Hugo user creates is called a custom variable or a user-⁠defined variable.

## Allowed characters in Hugo variable names

The names of Hugo variables (including those specified in config files and front matter)…

• can contain underscores (_) and alphanumeric characters,

• must start with an underscore (_) or alpha character,

• and must not contain a dash character (-).[2]

## Endnotes

1. Many Infinite Ink articles, including this one, are evergreen and regularly updated.
2. The Unicode name for the “dash” character (-) is “hyphen-minus,” but its proper name is rarely used. Instead, it is usually called “dash,” “hyphen,” or “minus.” Details are at wikipedia.org’s Hyphen-minus.
3. Sometimes this type of casing is called “lower camelCase.”
4. Page-level .Params are usually specified in front matter.

## Discuss or share 📝 🤔 🐘

• On Mastodon, I’m @nm@mathstodon.xyz and I’ll see your toot if you mention @nm@mathstodon.xyz or #InfiniteInk in it.