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

Cannot build the site due to missing template for x shortcode #1036

Open
AntoineSoetewey opened this issue Mar 18, 2025 · 1 comment
Open
Labels
bug Something isn't working

Comments

@AntoineSoetewey
Copy link
Contributor

Issue description

Dear,

I'm building the site directly from RStudio.

When building the site for the first time, here is the error I encountered:

> blogdown::build_site()
Start building sites … 
hugo v0.139.3-2f6864387cd31b975914e8373d4bf38bddbd47bc+extended darwin/arm64 BuildDate=2024-11-29T15:36:56Z VendorInfo=gohugoio

Total in 16 ms
Error: error building site: process: readAndProcessContent: "/Users/antoinesoetewey/Documents/GitHub/cmp/content/samples/rich-content/index.md:23:1": failed to extract shortcode: template for shortcode "x" not found

I managed to fix it by removing the x shortcode {{< x user="DesignReviewed" id="1085870671291310081" >}} in the file index.md located in content > samples > rich-content, but I just wanted to let you know.

Theme version

v2.11.0

Hugo version

0.139.3

Which browser rendering engines are you seeing the problem on?

Chromium (Google Chrome, Microsoft Edge, Brave, Vivaldi, Opera, etc.)

URL to sample repository or website

https://github.com/AntoineSoetewey/cmp

Hugo output or build error messages

@AntoineSoetewey AntoineSoetewey added the bug Something isn't working label Mar 18, 2025
@jpanther
Copy link
Owner

I think this is because the x shortcode was only introduced in Hugo 0.141.0 and you're using an older version. I think I'll have to bump the minimum version requirement to address this one.

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

2 participants