Ghost/core/server
Marcos Ojeda d28ffef3e9 Add {{navigation}} helper
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
2015-02-13 08:38:18 -08:00
..
api Add cache invalidation header when updating tags 2015-01-27 23:44:31 +00:00
apps Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
config Update urlFor to handle 'nav' contexts 2015-01-31 09:29:53 -08:00
controllers Add {{navigation}} helper 2015-02-13 08:38:18 -08:00
data Update urlFor to handle 'nav' contexts 2015-01-31 09:29:53 -08:00
email-templates Fixed email copy grammatical errors 2014-09-29 16:04:02 +02:00
errors Remove duplicate 'an' 2015-02-06 20:30:35 +00:00
helpers Add {{navigation}} helper 2015-02-13 08:38:18 -08:00
middleware Update dependencies 2014-12-25 00:22:45 +00:00
models Fixup finding user by role name 2015-01-20 18:31:17 +00:00
permissions Removes objectTypeModelMap to reduce circular dependency. 2014-10-27 20:48:22 -04:00
routes full BREAD Tag endpoints and Tag api tests 2014-11-13 00:44:36 +08:00
storage Add support for importing images 2014-12-21 01:58:35 +00:00
utils URL safe base64 encoding 2014-12-01 16:59:49 +01:00
views Cleans up HTML data attributes on body in default.hbs 2014-11-29 17:09:43 +01:00
filters.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
ghost-server.js Allow socket permissions to be set from config 2014-12-31 15:28:04 +00:00
index.js Merge pull request #4348 from jgable/sitemaps 2014-12-01 09:28:14 +00:00
mail.js Fix email sending fail when blog title has a comma 2015-01-09 21:34:24 +00:00
require-tree.js Follow symlinks when resolving theme paths. 2014-10-02 13:37:18 +00:00
update-check.js Add Ghost version to config object. 2014-11-28 18:08:50 +00:00
xmlrpc.js Return computed url with post object 2014-12-10 17:23:02 +00:00