Ghost: Problem with {{#is}} helper

Created on 8 Jun 2018  路  5Comments  路  Source: TryGhost/Ghost

Issue Summary

Helper {{#is "home"}}{{/is}} it works the same as {{#is "index"}}{{/is}}

Technical details:

  • Ghost Version: 1.24.1
  • Node Version: 8.11.1
  • Browser/OS: Safari/macOS
  • Database: sqlite3
bug server / core

All 5 comments

Hey @Kuzoin!

Thanks for your report.

Could you please provide a little more information?
Steps to reproduce would be helpful 馃檪

Hello :)

Steps to Reproduce

For Ghost 1.24.1 (localhost)

  1. Create home.hbs
  2. In default.hbs create {{#is "home"}} code {{/is}}
  3. Restart
  4. code is in the home page (its ok) but it is also on "paged".

Also {{body_class}} for "home" page is home-template, for "paged" is home-template paged

For Ghost 1.23.0 (localhost)

  1. Create home.hbs
  2. In default.hbs create {{#is "home"}} code{{/is}}
  3. Restart
  4. code is in only the home page.

{{body_class}} for "home" page is home-template, for "paged" is paged

@Kuzoin Will be released asap in 1.24.2. Thanks for your report 馃檪

@kirrg001

Hello!

In 1.24.2 {{#is "home"}}{{/is}} works perfectly, but {{#is "index"}}{{/is}} not working :/
I tested at 1.23.0 - {{#is "index"}}code{{/is}} and it works correctly.

Will look at this again 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mattferderer picture mattferderer  路  4Comments

rishabhgrg picture rishabhgrg  路  3Comments

kirrg001 picture kirrg001  路  3Comments

shadowbottle picture shadowbottle  路  3Comments

kevinansfield picture kevinansfield  路  3Comments