ember-blog
Version:
Adds a static blog to any Ember CLI app, supporting posts written in Markdown and HTMLBars
15 lines (10 loc) • 356 B
JavaScript
export default function(routerContext) {
routerContext.route('blog', function() {
this.route('authors');
this.route('author', { path: '/authors/:urlString' });
this.route('categories');
this.route('category', { path: '/categories/:urlString' });
this.route('posts');
this.route('post', { path: '/posts/:urlString' });
});
}