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

Failed to extract shortcode: template for shortcode "blocks/cover" not found #41

Closed
willwade opened this issue Feb 18, 2020 · 11 comments
Closed

Comments

@willwade
Copy link

Error: Error building site: " /content/no/_index.html:7:1": failed to extract shortcode: template for shortcode "blocks/cover" not found

I'm sure this is something simple - but found this when following the instructions..

@willwade
Copy link
Author

im being an idiot - I didnt do a subclone..

@khareyash05
Copy link

Hey @willwade Could you pls help me with this I am getting the same error

@prabhatsharma
Copy link

@khareyash05 Below command should help you.

git clone https://github.com/google/docsy-example docsy --recursive
cd docsy
hugo serve

@chalin
Copy link
Collaborator

chalin commented Dec 17, 2021

It works fine for me. After doing a cd into the repo, make sure that you first run npm install.

@afandian
Copy link

I'm seeing this. I got my site configured, up and running a few days ago and then it stopped working a few days later. Like this ticket, I see:

hugo v0.103.1-b665f1e8f16bf043b9d3c087a60866159d71b48d+extended darwin/arm64 BuildDate=2022-09-18T13:19:01Z VendorInfo=gohugoio
Error: Error building site: "path_to_repo/content/_index.html:7:1": failed to extract shortcode: template for shortcode "blocks/cover" not found

And like google/docsy#805 I got an error about print format being unrecognised, which I 'fixed' by removing that from the toml file. I tried removing the temp dir per that ticket, no dice.

Here's another example google/docsy#986 but hugo mod clean --all doesn't fix it for me.

This feels like it's an intermittent problem, though I have no idea what the cause is.

@scottcwilson
Copy link

I also got the Failed to extract shortcode issue, but hugo mod clean --all did fix it for me.

@UedaTakeyuki
Copy link

@khareyash05 Below command should help you.

git clone https://github.com/google/docsy-example docsy --recursive
cd docsy
hugo serve

Hello, I'm new to docsy and the issue is not fixed with --recursive as follows:

MacBook-Air-Early-2015:MyHugo takeyuki$ git clone https://github.com/google/docsy-example docsy --recursive
Cloning into 'docsy'...
remote: Enumerating objects: 1565, done.
remote: Counting objects: 100% (150/150), done.
remote: Compressing objects: 100% (92/92), done.
remote: Total 1565 (delta 60), reused 118 (delta 46), pack-reused 1415
Receiving objects: 100% (1565/1565), 2.61 MiB | 5.48 MiB/s, done.
Resolving deltas: 100% (762/762), done.
MacBook-Air-Early-2015:MyHugo takeyuki$ cd docsy
MacBook-Air-Early-2015:docsy takeyuki$ hugo serve
Built in 50 ms
Error: Error building site: "/Volumes/devtmp/MyHugo/docsy/content/en/_index.md:5:1": failed to extract shortcode: template for shortcode "blocks/cover" not found

Thank you for your suggestion.

@deining
Copy link
Collaborator

deining commented Nov 2, 2023

Hello, I'm new to docsy and the issue is not fixed with --recursive as follows:

MacBook-Air-Early-2015:MyHugo takeyuki$ git clone https://github.com/google/docsy-example docsy --recursive
Cloning into 'docsy'...
remote: Enumerating objects: 1565, done.
remote: Counting objects: 100% (150/150), done.
remote: Compressing objects: 100% (92/92), done.
remote: Total 1565 (delta 60), reused 118 (delta 46), pack-reused 1415
Receiving objects: 100% (1565/1565), 2.61 MiB | 5.48 MiB/s, done.
Resolving deltas: 100% (762/762), done.
MacBook-Air-Early-2015:MyHugo takeyuki$ cd docsy
MacBook-Air-Early-2015:docsy takeyuki$ hugo serve
Built in 50 ms
Error: Error building site: "/Volumes/devtmp/MyHugo/docsy/content/en/_index.md:5:1": failed to extract shortcode: template for shortcode "blocks/cover" not found

Thank you for your suggestion.

As suggested above:

Run npm install to install dependencies. Does this cure your problem?

@UedaTakeyuki
Copy link

Hi deining, thank you for your suggestion.
Unfortunately, the result is still the same.

MacBook-Air-Early-2015:docsy takeyuki$ npm install

up to date, audited 205 packages in 3s

53 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
MacBook-Air-Early-2015:docsy takeyuki$ hugo serve
Built in 40 ms
Error: Error building site: "/Volumes/devtmp/MyHugo/docsy/content/en/_index.md:5:1": failed to extract shortcode: template for shortcode "blocks/cover" not found

@deining
Copy link
Collaborator

deining commented Nov 3, 2023

Hi deining, thank you for your suggestion. Unfortunately, the result is still the same.

MacBook-Air-Early-2015:docsy takeyuki$ npm install

up to date, audited 205 packages in 3s

53 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
MacBook-Air-Early-2015:docsy takeyuki$ hugo serve
Built in 40 ms
Error: Error building site: "/Volumes/devtmp/MyHugo/docsy/content/en/_index.md:5:1": failed to extract shortcode: template for shortcode "blocks/cover" not found

What version of hugo you are using? Your version of Hugo must be v0.110.0 or above. See the section Troubleshooting in the README.md of the project.

@UedaTakeyuki
Copy link

Thank you deining! It was 0.71.1, and running well after updated to 0.120.3.
I really appreciate your suggestons.

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

8 participants