Stuck on the quick start guide at creating new content

I am following for a test site: Quick start | Hugo

I am supposed to use this command at a point: “hugo new content /posts/my-first-post.md”

However, I am encountering “Error: failed to resolve “content” to a archetype template”" upon this.

Not sure if it is relevant, but if I start the server with hugo server I only get a blank page, not sure if there should be more already, given I installed a theme.
I also get the warning: “WARN 2023/08/21 21:46:59 found no layout file for “HTML” for kind “taxonomy”: You should create a template file which matches Hugo Layouts Lookup Rules for this combination.”

1 Like

What version of Hugo are you using?

hugo version

0.92.2, Ubuntu

image

Ok, thanks, I will take a look. I probably thought any version would do. I have to check how I can easily upgrade the version.

Either install a prebuilt binary, or install the Snap package. The Snap package is self-updating.

https://gohugo.io/installation/linux/

I have the same issue. Fresh install on an Linux Mint LMDE 6. I followed all the prerequisites. then I started the quick start guide an stuck at the cmd “hugo new content posts/my-first-post.md”, I got the Error: “Error: failed to resolve “content” to an archetype template”.
My Version: hugo v0.111.3+extended linux/amd64 BuildDate=2023-03-16T08:41:31Z VendorInfo=debian:0.111.3-1
I have no clue what to do. :frowning:

I think that content is not correct in that place. Just leave it out and see what you get.

1 Like

LOL, thx a lot, that worked.
it looks like that getting started guide on the official website is a bit buggy :slight_smile:

Well, if you read this thread, you’ll find that the OP had a similar problem because they used an older version of Hugo. And if you read the documentation, you’ll find the Prerequisites at the top stating a minimum version of 0.112. Which you apparently ignored.

I guess the documentation might not be as buggy as you make it out to be. Hugo is, BTW, currently at version 0.121.1. Which you might perhaps want to use to keep up with documentation :wink:

hi chrillek
I did not ignore the fact my version is not correct. I just did not realize that the newest version I got today with “apt install” is not new enough :slight_smile:
but I know it’s mentioned in the thread that the snap package would be autoupdate, so as soon as I have some spare time I will switch to the snap version of Hugo.
And thanks again for your time to help some old dogs learning new stuff :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.