mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Hook up siteImage in settings to the open graph meta tags.
This commit is contained in:
parent
ae7865396f
commit
5e65b4c81d
1 changed files with 8 additions and 2 deletions
|
@ -8,7 +8,13 @@ class HeadTags extends Component {
|
|||
const url = this.props.url ? this.props.url : Telescope.utils.getSiteUrl();
|
||||
const title = this.props.title ? this.props.title : Telescope.settings.get("title");
|
||||
const description = this.props.description ? this.props.description : Telescope.settings.get("tagline");
|
||||
const image = this.props.image ? this.props.image : Telescope.utils.getSiteUrl() + Telescope.settings.get("logoUrl");
|
||||
|
||||
let image = Telescope.utils.getSiteUrl() + Telescope.settings.get("logoUrl");
|
||||
if (!!this.prop && !!this.prop.image) {
|
||||
image = this.props.image;
|
||||
} else if (!!Telescope.settings.get("siteImage")) {
|
||||
image = Telescope.settings.get("siteImage");
|
||||
}
|
||||
|
||||
const metas = [
|
||||
{ charset: "utf-8" },
|
||||
|
@ -51,4 +57,4 @@ HeadTags.propTypes = {
|
|||
};
|
||||
|
||||
module.exports = HeadTags;
|
||||
export default HeadTags;
|
||||
export default HeadTags;
|
||||
|
|
Loading…
Add table
Reference in a new issue