{"push_id":570723138,"size":1,"distinct_size":1,"ref":"refs/heads/navigation-helper-4541","head":"a3b84b6f6dc3dbb0b9bad0187eb1f94b59600999","before":"ee17ee311f99ec9417c035b40a46d05fcb8ee9c8","commits":[{"sha":"a3b84b6f6dc3dbb0b9bad0187eb1f94b59600999","author":{"email":"f90e10d0bcdf5020c836b069215fad8da77a4b4f@gmail.com","name":"Marcos Ojeda"},"message":"Add {{navigation}} helper\n\ncloses #4541\ncreates a handlebars helper with behavior matching the spec in #4541 and\nupdates `frontend.js` to include the navigation data in the rendered page\ncontext.\n- checks for {{current}} against `relativeUrl`\n- adds helper `getSiteNavigation()` which returns contents of\n  `api.settings.read('navigation')`, or an empty list\n- navigation helper is responsible for filtering and consistently formatting\n  navigation data from settings.\n- changes `frontend.js`'s `formatResponse` and `formatPageResponse` to return\n  a promise with page data and updates frontend controllers to use it.\n- `formatPageResponse` now includes a third parameter to allow values to be\n  merged into the page response (rather than using `_.extend` in the\n  render methods directly.\n- {{navigation}} will render an empty `ul` if no navigation items exist\n- incorporates new {{url}} behavior for nav contexts.","distinct":true,"url":"https://api.github.com/repos/nsfmc/Ghost/commits/a3b84b6f6dc3dbb0b9bad0187eb1f94b59600999"}]}