zerostaticthemes / hugo-hero-theme

A multi-page Hugo theme with fullscreen hero images and fullwidth sections.
https://hugo-hero.netlify.com
MIT License
355 stars 252 forks source link

Getting error when building: failed to extract shortcode: template for shortcode "content-stip-left" not found #62

Open meggenberger opened 1 year ago

meggenberger commented 1 year ago

Hi.

I followed the instructions for the installation on my Mac (M1) with Hugo extended installed (Hugo v0.115.2+extended darwin/arm64 BuildDate=unknown)

When I enter hugo to create the site I get the error

Start building sites …
hugo v0.115.2+extended darwin/arm64 BuildDate=unknown

Total in 22 ms
Error: error building site: assemble: "/Users/me/Code/Skarp/hero-theme/content/pages/about/index.md:11:1": failed to extract shortcode: template for shortcode "content-strip-left" not found

Any idea what I'm doing wrong?

fschimpf commented 1 year ago

Hi! I had the same problem. I deleted the file hugo.toml from the site root directory. After that everything works. Seems like the file is automatically generated by hugo when you create a new site. The theme has its own config.toml.

JugglerX commented 9 months ago

@meggenberger I can't reproduce the issue. I can see the shortcode does exist layouts/shortcodes/content-strip-left.html

@fschimpf I'm not sure what file you are referring too, there is not hugo.toml file.

I need more information to continue debugging.

lgwapnitsky commented 9 months ago

if you copy the files over from a new hugo site, the hugo.toml file exists. I can verify that, once that file is deleted, a hugo build works

JugglerX commented 9 months ago

Can someone provide exact steps? I dont see a hugo.toml file. Maybe you can link to it in the repo.

fschimpf commented 9 months ago

The file is generated by hugo if you follow step 2 of your installation instructions in the file readme.md: "2. Create a new Hugo site This will create a fresh Hugo site in the folder mynewsite. hugo new site mynewsite"

I think if this step is removed, everything should be fine :-)

richtong commented 8 months ago

Yes, it you do not need to do the init and the cp -a does not remove it, I can submit a PR to remove the README.md line