vim-hugo-helper
vim-hugo-helper copied to clipboard
HugoHelperDateIsNow breaks YAML and JSON front matter
Hugo defines 3 front matter formats: TOML, YAML, and JSON.
The HugoHelperDateIsNow
command inserts date =
, which works for TOML but breaks YAML and JSON front matter.
I haven't checked any of the other helpers. I suggest this either gets fixed or you put some sort of "TOML front matter only" caveat in the README.
FWIW, I think the Hugo team made a poor decision in choosing to support 3 front matter formats, because it makes it more difficult to build tooling around it.