robertbasic/vim-hugo-helper

HugoHelperDateIsNow breaks YAML and JSON front matter

Closed this issue · 1 comments

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.

I don't use Hugo anymore, so don't know if this is even still a problem anymore.