You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to scratch my head a little about this one. The test case above isn't all that realistic -- the reason why the above fails, is that all the newly created pages are drafts. It should work, of course, but I don't think it ever worked. If you edit the pages and remove the draft flag, everything works smoother.
bep
changed the title
'hugo convert toTOML' not working
hugo convert does not pick up draft pages
Nov 24, 2018
Output of
hugo env
:Steps to reproduce:
hugo new site yaml-site --format "yaml"
cd yaml-site
hugo new page1.md && hugo new page2.md && hugo new page3.md
hugo convert toTOML
The output of
hugo convert toTOML
says:So I tried:
hugo convert toTOML --unsafe
, and got output:But when inspecting the front matter of content files, they are still in YAML.
Also see: https://discourse.gohugo.io/t/hugo-convert-totoml-not-working-as-expected/15414
The text was updated successfully, but these errors were encountered: