Ghost/core/server/data
Marcos Ojeda 6f457768a2 Update urlFor to handle 'nav' contexts
needed for #4852
Before this, calling `{{url}}` with a nav context from #4541 would
output `/`. This adds a check in `urlFor` that looks for keys in a
nav context object, namely `slug`, `current`, `label`, & `url`.

This change allows for a url to pass through if used in a nav context.

* adds `schema.isNav()`
* adds tests to `url_spec.js`
* handles absolute urls correctly even if `absolute=true`
2015-01-31 09:29:53 -08:00
..
export Replace the when promise library with bluebird. 2014-08-23 17:15:40 +00:00
fixtures Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
import Image Importer Improvements 2015-01-02 22:54:40 +00:00
importer Assume datetime in import filename is UTC 2015-01-18 21:20:51 +00:00
migration Fix updateConfigTheme method. 2014-11-20 14:54:37 +00:00
sitemap Fixes sitemap image errors 2014-12-14 23:03:40 +00:00
utils Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
validation Data importer improvements and fixes 2014-12-18 19:50:53 +00:00
versioning Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
default-settings.json Connect Navigation page to live data 2015-01-14 21:24:08 +00:00
schema.js Update urlFor to handle 'nav' contexts 2015-01-31 09:29:53 -08:00