mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 01:03:23 +03:00
14 lines
463 B
JavaScript
14 lines
463 B
JavaScript
|
import Helper from '@ember/component/helper';
|
||
|
import classic from 'ember-classic-decorator';
|
||
|
import {htmlSafe} from '@ember/template';
|
||
|
import {inject as service} from '@ember/service';
|
||
|
|
||
|
@classic
|
||
|
export default class SiteIconStyleHelper extends Helper {
|
||
|
@service config;
|
||
|
|
||
|
compute() {
|
||
|
const icon = this.get('config.icon') || 'https://static.ghost.org/v4.0.0/images/ghost-orb-2.png';
|
||
|
return htmlSafe(`background-image: url(${icon})`);
|
||
|
}
|
||
|
}
|