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

[BUG] template for shortcode "block" not found #133

Open
4 tasks done
Nillecs opened this issue Dec 10, 2023 · 3 comments
Open
4 tasks done

[BUG] template for shortcode "block" not found #133

Nillecs opened this issue Dec 10, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Nillecs
Copy link

Nillecs commented Dec 10, 2023

I have checked all the prerequisites below and I'm yet experiencing a problem

  • Read the README.md
  • Have the extended version of Hugo installed
  • Used the exampleSite's hugo.toml as a reference
  • If and when requested, I'll link my repo to make it easier to debug.

⚠️ NOTE: If the issue isn't easy to reproduce and its author(s) decline to provide reasonable accommodation to debug, the issue will be closed.

Describe the bug

Linux Command:

hugo new site yourSiteName
cd yourSiteName
git init
git submodule add https://github.com/onweru/compose/ themes/compose
cp -a themes/compose/exampleSite/* .
hugo server

Error Message:

Error: Error building site: "/mnt/c/Users/Liffecs/test/yourSiteName/content/_index.md:11:1": failed to extract shortcode: template for shortcode "block" not found

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Browser: Chrome
@Nillecs Nillecs added the bug Something isn't working label Dec 10, 2023
onweru added a commit that referenced this issue Jan 11, 2024
@onweru
Copy link
Owner

onweru commented Jan 11, 2024

@Nillecs, I couldn't reproduce the error shared. I got an unrelated error that was git related. Curious if you were installing the theme on a new site.

@eskopp
Copy link

eskopp commented Jan 28, 2024

Hi,
I'm getting exactly the same error.

/mnt/c/test/hugo [eskopp@ESkopp] [15:28]
> ls -a
.  ..

/mnt/c/test/hugo [eskopp@ESkopp] [15:28]
> git clone --recurse-submodules --depth 1 https://github.com/onweru/compose.git
cd compose/exampleSite/
hugo server --themesDir ../..
Cloning into 'compose'...
remote: Enumerating objects: 281, done.
remote: Counting objects: 100% (281/281), done.
remote: Compressing objects: 100% (257/257), done.
remote: Total 281 (delta 8), reused 198 (delta 7), pack-reused 0
Receiving objects: 100% (281/281), 4.75 MiB | 4.18 MiB/s, done.
Resolving deltas: 100% (8/8), done.
Updating files: 100% (232/232), done.
Start building sites …
hugo v0.92.2+extended linux/amd64 BuildDate=2023-01-31T11:11:57Z VendorInfo=ubuntu:0.92.2-1ubuntu0.1
Error: Error building site: "/mnt/c/test/hugo/compose/exampleSite/content/_index.md:11:1": failed to extract shortcode: template for shortcode "block" not found
Built in 483 ms

@RajPorus19
Copy link

Hello I'm on the same environement as you @Nillecs
To fix this issue all I had to do was to download the snap version of hugo : https://snapcraft.io/hugo

sudo snap install hugo

But alternatively you can have the same outcome by downloading a more up-to date version of hugo cli.
Hope this helps !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants