mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -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 |
||
---|---|---|
.. | ||
asset_spec.js | ||
author_spec.js | ||
body_class_spec.js | ||
content_spec.js | ||
date_spec.js | ||
encode_spec.js | ||
excerpt_spec.js | ||
foreach_spec.js | ||
ghost_foot_spec.js | ||
ghost_head_spec.js | ||
ghost_script_tags_spec.js | ||
has_spec.js | ||
image_spec.js | ||
is_spec.js | ||
meta_description_spec.js | ||
meta_title_spec.js | ||
navigation_spec.js | ||
page_url_spec.js | ||
pagination_spec.js | ||
plural_spec.js | ||
post_class_spec.js | ||
tags_spec.js | ||
title_spec.js | ||
url_spec.js | ||
utils.js |