Ghost/core/server/models
Harry Wolff 9ab4b7d4d5 Adds tag pages
fixes #2111

- modified Post model to support a tag query
  param that will filter the desired post collection
  to only include posts that contain the requested tag

- in the updated Post model it includes the Tag model
  under a nested object called 'aspects'

- added tests for updated Post model, updating
  test utils to add more posts_tags relations

- adds two new routes to frontend,
  one for initial tag page,
  another to page that tag page

- for tag pages the array of posts
  is exposed to the view similarly
  to the homepeage

- on the tag view page the information
  for the tag is also accessible
  for further theme usage

- the tag view page supports a hierarchy of
  views, it'll first attempt to use a tag.hbs
  file if it exists, otherwise fall back
  to the default index.hbs file

- modified pageUrl and pagination helper
  to have it be compatible with tag paging

- added unit tests for frontend controller

- added unit tests for handlebar helper modifications

- add functional tests for new tag routes
2014-02-18 15:10:02 -05:00
..
base.js Replace underscore with lodash. 2014-02-06 14:08:34 +00:00
index.js Replace underscore with lodash. 2014-02-06 14:08:34 +00:00
permission.js Updating to bookshelf 0.5.7 & knex 0.4.11 2013-10-17 18:23:36 +01:00
post.js Adds tag pages 2014-02-18 15:10:02 -05:00
role.js Updating to bookshelf 0.5.7 & knex 0.4.11 2013-10-17 18:23:36 +01:00
session.js Replace cookieSession with session 2013-11-24 15:29:36 +01:00
settings.js Replace underscore with lodash. 2014-02-06 14:08:34 +00:00
tag.js Extending halfdan’s work for UX settings improvements 2014-01-06 21:33:24 -05:00
user.js Replace underscore with lodash. 2014-02-06 14:08:34 +00:00