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 · 0 comments

Comments

Projects
None yet
2 participants
@jgreely

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 from 0.24 archetype handling throws error on shortcodes to 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 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment