Wowchemy-hugo-modules: Error when creating new publication

Created on 16 Oct 2018  Â·  5Comments  Â·  Source: wowchemy/wowchemy-hugo-modules

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?

upstream

Most helpful comment

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...

All 5 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chris-prener picture chris-prener  Â·  3Comments

HughP picture HughP  Â·  4Comments

henningninneh picture henningninneh  Â·  3Comments

melvidoni picture melvidoni  Â·  3Comments

jacebenson picture jacebenson  Â·  3Comments