ember-ghost-casper-template
Version:
Casper Template for Ember Ghost
16 lines (14 loc) • 468 B
JavaScript
import Component from '@ember/component';
import { inject as service } from '@ember/service';
import { htmlSafe } from '@ember/string';
import { computed } from '@ember/object';
import { url } from 'ember-ghost-casper-template/helpers/url'
export default Component.extend({
blog: service(),
router: service(),
url: service(),
tagName: '',
postStyle: computed('', function() {
return htmlSafe(`background-image: url(${url([this.post.image])})`);
})
})