mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
d28ffef3e9
closes #4541 creates a handlebars helper with behavior matching the spec in #4541 and updates `frontend.js` to include the navigation data in the rendered page context. - checks for {{current}} against `relativeUrl` - adds helper `getSiteNavigation()` which returns contents of `api.settings.read('navigation')`, or an empty list - navigation helper is responsible for filtering and consistently formatting navigation data from settings. - changes `frontend.js`'s `formatResponse` & `formatPageResponse` to return a promise with page data and updates frontend controllers to use it. - `formatPageResponse` now includes a third parameter to allow values to be merged into the page response (rather than using `_.extend` in the render methods directly. - {{navigation}} will render an empty `ul` if no navigation items exist - incorporates {{url}}/urlFor behavior for nav contexts. (see #4862) - uses {{url absolute="true"}} in default nav template |
||
---|---|---|
.. | ||
server_helpers | ||
apps_spec.js | ||
config_spec.js | ||
error_handling_spec.js | ||
filters_spec.js | ||
frontend_spec.js | ||
importer_spec.js | ||
mail_spec.js | ||
middleware_spec.js | ||
migration_spec.js | ||
permissions_spec.js | ||
server_helpers_index_spec.js | ||
server_helpers_template_spec.js | ||
server_spec.js | ||
showdown_client_integrated_spec.js | ||
showdown_footnotes_spec.js | ||
showdown_ghostGFM_spec.js | ||
showdown_ghostimagepreview_spec.js | ||
showdown_highlight_spec.js | ||
storage_local-file-store_spec.js | ||
xmlrpc_spec.js |