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

Indenting partials causes unexpected results #14

Closed
ErisDS opened this issue Oct 30, 2014 · 1 comment
Closed

Indenting partials causes unexpected results #14

ErisDS opened this issue Oct 30, 2014 · 1 comment
Labels

Comments

@ErisDS
Copy link

ErisDS commented Oct 30, 2014

A user of the phantom theme reported an issue on the ghost forum where code blocks were rendering with extra indentation.

I narrowed the issue down to being a problem with the {{>content}} partial used to output content. The code to include the partial is indented one level, which handlebars then respects and applies to all the content output by the partial. This is apparently a change to how handlebars works which may get a flag to disable.

In the meantime, I will look to downgrade the version of handlebars we use in Ghost, but also it may be worth updating your themes to remove the indentation from the {{>content}} partial.

@haydenbleasel
Copy link

@ErisDS Okay, thanks for the heads up champion 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants