ember-ghost
Version:
Fully-functional, SEO friendly static site implementation of a blog system built on Ember.
18 lines (15 loc) • 350 B
JavaScript
import Route from '@ember/routing/route';
import { hash } from 'rsvp';
export default Route.extend({
classNames: ["post-template"],
model(params) {
return hash({
post: this.store.queryRecord('content', {
path: params.id,
}),
posts: this.store.query('content', {
path: 'content',
})
});
},
});