[BUG] template for shortcode "block" not found
I have checked all the prerequisites below and I'm yet experiencing a problem
- [X] Read the README.md
- [X] Have the extended version of Hugo installed
- [X] Used the exampleSite's hugo.toml as a reference
- [X] 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, 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.
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
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 !