vim-hugo-helper icon indicating copy to clipboard operation
vim-hugo-helper copied to clipboard

HugoHelperDateIsNow breaks YAML and JSON front matter

Open drichardson opened this issue 6 years ago • 0 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.

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.

drichardson avatar Sep 18 '18 02:09 drichardson