From aa596b5859d48a1b36399a954b3dd75dd19c1de2 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Sat, 3 Aug 2019 02:57:03 +0300 Subject: [PATCH] teacher page meta update --- pages/teacher/[person].jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/teacher/[person].jsx b/pages/teacher/[person].jsx index d9a137b2..8a9a2c54 100644 --- a/pages/teacher/[person].jsx +++ b/pages/teacher/[person].jsx @@ -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, }) } }