Hello, I'm using Hugo version 0.49 on Ubuntu 18.04.
When I use the command hugo new --kind publication publication/XYZ, it gives me the error Error: stat /home/krishnapriya/acad_website/themes/academic/archetypes/archetypes/publication/index.md: no such file or directory.
Am I doing something wrong?
Thanks for reporting this, I have checked and it may be a bug with Hugo.
In the meantime, the workaround of adding ../ after kind and post-fixing the command with /index.md seems to work, i.e.:
hugo new --kind ../publication publication/XYZ/index.md
hugo new --kind ../post post/XYZ/index.md
etc...
That works, thank you!
On Mon, 15 Oct 2018 at 19:24, gcushen notifications@github.com wrote:
Thanks for reporting this, I have checked and it may be a bug with Hugo.
In the meantime, the workaround of adding ../ after kind seems to work,
i.e.:hugo new --kind ../publication publication/XYZ
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gcushen/hugo-academic/issues/732#issuecomment-430048137,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHJoHnyhDdVX2IpkH-6zQclaWwRz_5z5ks5ulRlBgaJpZM4XdSdJ
.
--
Krishnapriya Vishnubhotla
Department of Computer Science,
University of Toronto
Update: It's been confirmed as a Hugo bug (https://github.com/gohugoio/hugo/issues/5318) that is planned to be fixed in Hugo v0.50.
Hugo can now be updated to v0.50+ to fix this bug: https://github.com/gohugoio/hugo/releases/tag/v0.50
Most helpful comment
In the meantime, the workaround of adding
../afterkindand post-fixing the command with/index.mdseems to work, i.e.: