Ghost/test/unit/helpers/test_tpl/navigation.hbs
Hannah Wolfe 2876178dcf 🐛 Fixed logic error in navigation for isSecondary
closes #11772

- Ensures that isSecondary is a boolean true or false
- Added tests that cover the bug, switching to using compile because the helpers have to be run together
- TODO: all tests for helpers should be switched to compile, it's SO MUCH easier
2020-05-18 19:15:28 +01:00

10 lines
213 B
Handlebars

{{@site.title}}
{{#if isHeader}}isHeader is set{{/if}}
{{#if isSecondary}}Jeremy Bearimy baby!{{else}}Prime time!{{/if}}
{{#foreach navigation}}
<a href="{{url absolute="true"}}">{{label}}</a>
{{/foreach}}