Ghost/core/server/views
Hannah Wolfe af6137248d New URL helper - URL consistency fixes
fixes #1765
fixes #1811
issue #1833

New UrlFor functions

- moved body of url helper to config.path.urlFor, which can generate a URL for various scenarios
- urlFor can take a string (name) or object (relativeUrl: '/') as the first
  argument - this is the first step towards issue #1833
- also added config.path.urlForPost which is async and handles getting
  permalink setting
- frontend controller, ghost_head helper, cache invalidation all now use
  urlFor or urlForPost all urls should be correct and consistent

URL Consistency Improvements

- refactored invalidateCache into cacheInvalidationHeader which returns a
  promise so that url can be generated properly by urlForPost
- moved isPost from models to schema, and refactored schema to have a tables object
- deleted posts now return the whole object, not just id and slug,
  ensuring cache invalidation header can be set on delete
- frontend controller rss and archive page redirects work properly with subdirectory
- removes {{url}} helper from admin and client, and replaced with adminUrl
  helper which also uses urlFor
- in res.locals ghostRoot becomes relativeUrl, and path is removed
2014-01-06 15:15:48 +00:00
..
partials New URL helper - URL consistency fixes 2014-01-06 15:15:48 +00:00
content.hbs New URL helper - URL consistency fixes 2014-01-06 15:15:48 +00:00
debug.hbs New URL helper - URL consistency fixes 2014-01-06 15:15:48 +00:00
default.hbs Subdir support for admin interface 2013-11-27 09:57:38 +00:00
editor.hbs Complete post-settings menu refactor 2013-11-12 09:19:02 +01:00
error.hbs Fixed admin 404 page broken image refrence 2013-12-12 21:21:58 +00:00
forgotten.hbs Improved Auth screen markup and validation checks 2013-09-12 09:59:58 +01:00
login.hbs Center login form with CSS instead of JS 2013-09-08 17:12:25 +02:00
reset.hbs Improved Password Reset Tool 2013-11-22 10:46:19 -06:00
settings.hbs Disable filestorage 2013-10-02 11:39:34 +02:00
signup.hbs Improved Auth screen markup and validation checks 2013-09-12 09:59:58 +01:00
user-error.hbs Link to the favicon using the asset helper 2013-12-22 09:35:45 -07:00