HUGO-CONVERT-TOTOML(1)
π hugo-convert-toTOML β the manual page, but make it make sense
okay so real talk: this is a page from the Hugo Manual, and it's all about hugo-convert-toTOML, which β spoiler β converts your front matter to TOML. bestie, if you've ever opened a .md file, saw +++ instead of --- at the top, and went "wait what", this is your moment. πΈ
β¨ NAME β¨
hugo-convert-toTOML β Convert front matter to TOML π
like, that's it. that's the job. it takes front matter and makes it TOML. iconic behaviour, no notes.
π SYNOPSIS π
hugo convert toTOML [flags] [args]
yes the command name has a lowercase to and an uppercase TOML in the middle. it's giving camelCase but make it a command. copy it exactly, don't get creative, i'm begging π«Ά
π¦ DESCRIPTION π¦
toTOML converts all front matter in the content directory to use TOML for the front matter.
that's the whole vibe. every single file in your content dir gets its front matter switched over to TOML. one command, whole directory, done. main character energy fr fr β¨
ngl, "all" means all β so if you were only planning on converting one little file, maybe double-check your setup before you hit enter. π
π₯ OPTIONS π₯
-h,--help[=false]β help fortoTOML. your classic "what does this do again" button. defaults tofalse, obviously, because you don't need help until you do. π
π OPTIONS INHERITED FROM PARENT COMMANDS π
these bad boys come from the parent command, so they're riding along whether you asked or not. slay, i guess.
--clock=""β set the clock used by Hugo, e.g.--clock 2021-11-06T22:30:00.00+09:00--config=""β config file (default ishugo.yaml|json|toml)--configDir="config"β config dir-d,--destination=""β filesystem path to write files to-e,--environment=""β build environment--ignoreVendorPaths=""β ignores any_vendorfor module paths matching the given Glob pattern--logLevel=""β log level (debug|info|warn|error)--noBuildLock[=false]β don't create.hugo_build.lockfile-o,--output=""β filesystem path to write files to--quiet[=false]β build in quiet mode-M,--renderToMemory[=false]β render to memory (mostly useful when running the server)-s,--source=""β filesystem path to read files relative from--themesDir=""β filesystem path to themes directory--unsafe[=false]β enable less safe operations, please backup first
π¨ okay <red>--unsafe</red> is literally named that. "less safe operations, please backup first" is a direct quote and it's a direct quote for a reason. back. up. first. i'm not playing. π
π SEE ALSO π
hugo-convert(1)β the parent command, the origin story, the mothership π§
and that's the page!! lowkey a short one but she ate. π
Hugo 0.169.0 Β· Oct 2026 β mwah, sending you a forehead kiss, go convert some front matter responsibly and remember to back up before you touch --unsafe. ππ«Άβ¨
π¦ where this page comes from
- arch rolling: hugo 0.169.0-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms