fix(layout): open graph url & images not set

This commit is contained in:
ppoffice 2020-04-14 11:36:39 -04:00
parent e6118c71f0
commit 6a1425b12c
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ module.exports = class extends Component {
author={open_graph.author || config.author}
description={open_graph.description || page.description || page.excerpt || page.content || config.description}
keywords={page.keywords || (page.tags && page.tags.length ? page.tags : undefined) || config.keywords}
url={open_graph.url || url}
url={open_graph.url || page.permalink || url}
images={openGraphImages}
siteName={open_graph.site_name || config.title}
language={language}

View File

@ -22,7 +22,7 @@
"bulma-stylus": "0.8.0",
"deepmerge": "^4.2.2",
"hexo": "^4.2.0",
"hexo-component-inferno": "^0.2.3",
"hexo-component-inferno": "^0.2.4",
"hexo-log": "^1.0.0",
"hexo-pagination": "^1.0.0",
"hexo-renderer-inferno": "^0.1.3",