Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
meggenberger opened this issue Jul 30, 2023 · 6 comments

Comments

@meggenberger
Copy link

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
Copy link

fschimpf commented Aug 2, 2023

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
Copy link
Collaborator

@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
Copy link

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
Copy link
Collaborator

JugglerX commented Dec 3, 2023

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

@fschimpf
Copy link

fschimpf commented Dec 4, 2023

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants