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
@ -95,14 +95,7 @@ export default Component.extend(ShortcutsMixin, {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let subdirRegExp = new RegExp(`^${this.get('ghostPaths.subdir')}`);
|
let iconUrl = 'https://static.ghost.org/v3.0.0/images/ghost-squircle.png';
|
||||||
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()}`;
|
|
||||||
|
|
||||||
this.set('iconStyle', htmlSafe(`background-image: url(${iconUrl})`));
|
this.set('iconStyle', htmlSafe(`background-image: url(${iconUrl})`));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user