nitinthewiz / ghost-phantom

Phantom theme for Ghost
MIT License
434 stars 121 forks source link

Indenting partials causes unexpected results #14

Closed ErisDS closed 9 years ago

ErisDS commented 9 years ago

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 commented 9 years ago

@ErisDS Okay, thanks for the heads up champion :+1: