ember install ember-pages
import DS from 'ember-data';
export default DS.Model.extend({
title: DS.attr('string'),
description: DS.attr('string'),
body: DS.attr('string')
});
import PageAdapter from 'ember-pages/adapters/page';
export default PageAdapter.extend({
});
ember generate page blogPost title:"Title is required" description:"Set your model property values"
---
title: Title is required
description: Set your model property values
---
Hello from app/pages/blog-posts/title-is-required.md
> post = $E.store.find("blogPost", 0)
h {__nextSuper: undefined, __ember1430412616372: null, __ember_meta__: Object, constructor: function, _super: function…}
> post.get('title')
"Title is required"
> post.get('body')
"<p>Hello from app/pages/blog-posts/title-is-required.md</p>"
For now, most of what Jekyll provides is not handled. See Issues for more information.