You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When in the context of a post, this helper should output '/' + slug.
Users will soon also have slugs, and so will tags, but none of this is available yet. Therefore the helper should check that it is definitely in a post context and only output if it is. Once we get tag pages and user pages we can add those URLs in.
The text was updated successfully, but these errors were encountered:
closesTryGhost#528
- adds method (isPost)to models index.js that returns true if content, content_raw, title and slug are valid properties
- adds url helper which checks context is post using isPost method
- adds unit test to check a url is prefixed with /
-adds unit test which checks for empty string if either of the 4 properties above are not present.
When in the context of a post, this helper should output '/' + slug.
Users will soon also have slugs, and so will tags, but none of this is available yet. Therefore the helper should check that it is definitely in a post context and only output if it is. Once we get tag pages and user pages we can add those URLs in.
The text was updated successfully, but these errors were encountered: