teacher page meta update
This commit is contained in:
1 parent
e67d8ab40e
commit
aa596b5859
1 file changed
+4
@@ -34,6 +34,7 @@ Index.getInitialProps = async (ctx) => {
|
||||
const person = res.data
|
||||
const name = person.name || []
|
||||
const title = name.join(' ')
|
||||
const image = person.preview.artifacts.fb
|
||||
|
||||
return {
|
||||
pageUrl,
|
||||
@@ -41,6 +42,9 @@ Index.getInitialProps = async (ctx) => {
|
||||
title,
|
||||
meta: meta({
|
||||
title,
|
||||
image: image.src,
|
||||
imageWidth: image.width,
|
||||
imageHeight: image.height,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user