fix: use the title in the page front matter for the og image if available

This commit is contained in:
Hossein Mehrabi
2023-07-18 00:47:49 +03:30
parent 60393b08da
commit 3d06dde3ef
@@ -283,7 +283,9 @@ const pagesImageRenderer = imageRendererFactory(
return [
<Layout
title={metadata.title}
title={
(metadata as MDXPageMetadata).frontMatter?.title || metadata.title
}
footer={url.host}
logo={
logo && <img src={logo.src as any} style={{ height: logo.height }} />