Skip to content

Commit

Permalink
fix: use the title in the page front matter for the og image if avail…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
jeangovil committed Jul 17, 2023
1 parent 60393b0 commit 3d06dde
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }} />
Expand Down

0 comments on commit 3d06dde

Please sign in to comment.