mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
6f457768a2
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` |
||
---|---|---|
.. | ||
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 | ||
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 |