[www] Meta Image size added
This commit is contained in:
1 parent
2bdceaecb8
commit
16a8719927
2 files changed
+6
No files matched your search
@@ -104,8 +104,12 @@ function getMeta(article) {
|
||||
try {
|
||||
const artifact = article.preview.findArtifact(types)
|
||||
meta.image = artifact.url
|
||||
meta.imageWidth = artifact.width
|
||||
meta.imageHeight = artifact.height
|
||||
} catch (error) {
|
||||
meta.image = 'https://art.shlisselburg.org/entrance.jpg'
|
||||
meta.imageWidth = 1200
|
||||
meta.imageHeight = 630
|
||||
}
|
||||
}
|
||||
return meta
|
||||
|
||||
Reference in new issue
Block a user