Jupyter4Science / jupyter4science.github.io

https://jupyter4science.github.io/
MIT License
0 stars 0 forks source link

cta-button-list partial not found #2

Open nicole-brewer opened 6 months ago

nicole-brewer commented 6 months ago
Start building sites … 
hugo v0.122.0-b9a03bd59d5f71a529acb3e33f995e0ef332b3aa+extended darwin/arm64 BuildDate=2024-01-26T15:54:24Z VendorInfo=gohugoio

ERROR %!s(<nil>) uses a `cta-button-list` block but the `cta-button-list` block was not found at `layouts/partials/blocks/cta-button-list.html`
Total in 519 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/Users/nabrewer/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!hugo!blox/hugo-blox-builder/modules/blox-bootstrap/v5@v5.9.7-0.20231108143325-448ed0e3bd2b/layouts/landing/single.html:2:5": execute of template failed: template: landing/single.html:2:5: executing "main" at <partial "landing_page.html" .>: error calling partial: "/Users/nabrewer/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!hugo!blox/hugo-blox-builder/modules/blox-bootstrap/v5@v5.9.7-0.20231108143325-448ed0e3bd2b/layouts/partials/landing_page.html:9:7": execute of template failed: template: partials/landing_page.html:9:7: executing "partials/landing_page.html" at <partial "functions/parse_block_v2" (dict "page" $ "block" $block)>: error calling partial: "/Users/nabrewer/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!hugo!blox/hugo-blox-builder/modules/blox-bootstrap/v5@v5.9.7-0.20231108143325-448ed0e3bd2b/layouts/partials/functions/parse_block_v2.html:140:7": execute of template failed: template: partials/functions/parse_block_v2.html:140:7: executing "partials/functions/parse_block_v2.html" at <partial $block_path $widget_args>: error calling partial: partial "blocks/cta-button-list.html" not found

This took me way too long to figure out, because it took me a while to isolate that particular blox as being the only one that wasn't actually working. This Discord post helped me realize the issue was that I didn't have the newest version of hugo blox called tailwind as discussed here because the Research Group template I used hasn't been updated to reflect the changes yet. Instructions for updating and tagged releases.

Yihao-Shi commented 1 month ago

could you please share how to fix it? I also meet this problems. Many thanks!

nicole-brewer commented 1 month ago

I'm guessing you need to upgrade your template to a newer version for the cta-button-list to start working. I haven't gone through the process yet

Yihao-Shi commented 1 month ago

thanks