teacher page meta update

This commit is contained in:
tmshv committed 2019-08-03 02:57:03 +03:00
1 parent e67d8ab40e
commit aa596b5859
1 file changed
+4
+4
View File
@@ -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,
})
}
}