-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Description
Tag pages allow the for the browsing of posts which have a particular tag, by visiting the route:
/tag/:slug/
Where :slug is the slug of a particular tag.
The tag page will provide the template with a paginated set of posts for the given tag, which can be accessed via {{#foreach posts}} in exactly the same way as the standard post list is rendered using index.hbs.
Additionally, tag pages will provide the template with all the data for the given tag such that it can be accessed by the tag via {{#tag}} in the same style as the post.hbs template.
The new tag controller will support a template/view hierarchy much like page.hbs > post.hbs. If there is a template called tag.hbs this will be used to render the page, otherwise tag pages will use the standard index.hbs which lists out posts.
Note: for this to be truly useful, there are some changes need to some of our handlebars helpers as covered by #2112
Note: for users to really love this feature, they're going to need to be able to manage their tags - delete unused ones, edit descriptions, etc. This will come along in #2119