HUGO-CONVERT-TOJSON(1)
β¨ HUGO-CONVERT-TOJSON(1) β¨
okay so this is a page straight out of the Hugo Manual bestie, and it's all about one tiny little command that does one very specific glow-up. let's get into it π
πΈ NAME πΈ
hugo-convert-toJSON β convert front matter to JSON
like, the whole entire vibe is "front matter, but make it JSON" β¨
π¦ SYNOPSIS π¦
hugo convert toJSON [flags] [args]
that's it. that's the whole thing. flags go here, args go there, slay π
π DESCRIPTION π
so toJSON takes all the front matter in your content directory and converts it to use JSON for the front matter. all of it. every last file. no cap.
that's literally the whole job. it's giving "one task, done well" main character energy π
π OPTIONS π
-h,--help[=false]β help fortoJSON. it's the "wait what does this do again" button π«Ά
π OPTIONS INHERITED FROM PARENT COMMANDS π
these are the hand-me-downs from the parent command, and honestly they ate π
--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
β οΈ ok bestie real talk for a sec: that last one, --unsafe, literally says "please backup first" in the manpage. that's not me being dramatic, that's Hugo being dramatic. back your stuff up before you go enabling less safe operations, fr fr π
π SEE ALSO π
hugo-convert(1)β the parent command, the original, the blueprint. go read it, iykyk π§
Hugo 0.169.0 π¦ Oct 2026 β and that's the whole page bestie!! written by the Hugo girlies, dated Oct 2026, shipped as Hugo 0.169.0. go convert some front matter, you're gonna do amazing πβ¨π
π¦ 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