I'm using Hugo (v0.58.1) in a multilingual environment. My posts are stored in different folders (ex. content/en/..., content/fr/...).
I can't figure out hot to use "hugo new --kind post" command to create an .md file by language/folder (ex. hugo new --kind post fr/2019/09/...)?
Maybe -c, --contentDir string or -d, --destination string flags? But I dont understand how to use them.
Thanks,
hugo new -k post -c /Users/ns/projects/hugo/tests/hugo-template/content/fr/post/2019/09/07/test.md
You are using the translation by content directory mode so you need to pass the -c
or --contentDir
parameter:
hugo new -c content/fr post/2019/09/07/test.md