mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
Updated fallback site icon for navigation header
This commit is contained in:
parent
4a79a94993
commit
332e54533a
@ -94,15 +94,8 @@ export default Component.extend(ShortcutsMixin, {
|
||||
this.set('iconStyle', htmlSafe(`background-image: url(${icon})`));
|
||||
return;
|
||||
}
|
||||
|
||||
let subdirRegExp = new RegExp(`^${this.get('ghostPaths.subdir')}`);
|
||||
let blogIcon = icon ? icon : 'favicon.ico';
|
||||
let iconUrl;
|
||||
|
||||
blogIcon = blogIcon.replace(subdirRegExp, '');
|
||||
|
||||
iconUrl = this.get('ghostPaths.url').join(this.get('config.blogUrl'), blogIcon).replace(/\/$/, '');
|
||||
iconUrl += `?t=${(new Date()).valueOf()}`;
|
||||
|
||||
let iconUrl = 'https://static.ghost.org/v3.0.0/images/ghost-squircle.png';
|
||||
|
||||
this.set('iconStyle', htmlSafe(`background-image: url(${iconUrl})`));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user