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

Error: Error building site: failed to process shortcode: #54

Open
avvial opened this issue Mar 8, 2023 · 2 comments
Open

Error: Error building site: failed to process shortcode: #54

avvial opened this issue Mar 8, 2023 · 2 comments

Comments

@avvial
Copy link

avvial commented Mar 8, 2023

Anyone able to help with this error?

1. I installed Go and Hugo (binary) and checked the version:
\projects>hugo version
hugo v0.111.2-4164f8fef9d71f50ef3962897e319ab6219a1dad+extended windows/amd64 BuildDate=2023-03-05T12:32:20Z VendorInfo=gohugoio

2. Created a new site for testing
\projects>hugo new site docs
Congratulations! Your new Hugo site is created in C:\Users\Anthony\Documents\projects\docs.

3. Downloaded the ace-documentation from git
\projects\docs>cd themes
\projects\docs\themes>git clone https://github.com/vantagedesign/ace-documentation
Cloning into 'ace-documentation'...
...
Resolving deltas: 100% (268/268), done.

4. Copied the example folders
\projects\docs\themes\ace-documentation\exampleSite\content to \projects\docs\content
\projects\docs\themes\ace-documentation\exampleSite\resources to \projects\docs\resources

5. Update the configuration file
\projects\docs\config.toml now contains:
baseURL = 'Users/Anthony/Documents/projects/docs'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme = "ace-documentation"

6. Ran Hugo
(Note: full path shortened for clarity)
Error: Error building site: C: ... \projects\docs\content\shortcodes\doublecode.md:23:1": failed to render shortcode "code": failed to process shortcode: "C: ... \projects\docs\themes\ace-documentation\layouts\shortcodes\code.html:23:67": execute of template failed: template: shortcodes/code.html:23:67: executing "shortcodes/code.html" at : error calling markdownify: "C: ... \projects\docs\content_index.md:3:1": failed to extract shortcode: unclosed shortcode "doublecode"

I have tried other installations, in other project locations, with the same resulting error.

What have I missed? Any help appreciated.

@OlafRadicke
Copy link

Yes, same under linux:

hugo v0.111.3+extended linux/amd64 BuildDate=2023-03-16T08:41:31Z VendorInfo=debian:0.111.3-1
Error: Error building site: "/hugo/hugo/content/shortcodes/code.md:23:1": failed to render shortcode "code": failed to process shortcode: "/hugo/hugo/themes/ace-documentation/layouts/shortcodes/code.html:23:67": execute of template failed: template: shortcodes/code.html:23:67: executing "shortcodes/code.html" at <markdownify>: error calling markdownify: "/hugo/hugo/content/_index.md:3:1": failed to extract shortcode: shortcode "code" must be closed or self-closed

But v0.98 is working fine.

@OlafRadicke
Copy link

This PR #57 can show you this issue:

image

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

2 participants