Error: Error building site: failed to process shortcode:
avvial opened this issue · comments
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.
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.
This PR #57 can show you this issue: