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

Archetype fails when it contains shortcode #3623

Closed
jgreely opened this issue Jun 21, 2017 · 1 comment · Fixed by #3636
Closed

Archetype fails when it contains shortcode #3623

jgreely opened this issue Jun 21, 2017 · 1 comment · Fixed by #3636

Comments

@jgreely
Copy link

jgreely commented Jun 21, 2017

Sample shortcodes in the content section of an archetype throw an error. For instance, my blog post archetype contains:

{{% spoiler %}}
... hidden content here...
{{% /spoiler %}}

And in 0.24, hugo new post/doctor-who-10-10.md returns:

Error: Failed to parse archetype file "/Users/j.greely/dotclue/themes/mt2-theme/archetypes/post.md": template: post:69: unexpected "%" in command

The workaround is to break up the opening '{{' with any character, like '{X{'.

@bep bep changed the title 0.24 archetype handling throws error on shortcodes Archetype fails when it contains shortcode Jun 22, 2017
@bep bep added this to the v0.24.1 milestone Jun 22, 2017
@bep bep added the Bug label Jun 22, 2017
bep added a commit to bep/hugo that referenced this issue Jun 23, 2017
@bep bep closed this as completed in #3636 Jun 23, 2017
bep added a commit that referenced this issue Jun 23, 2017
bep added a commit that referenced this issue Jun 24, 2017
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants