mirror of
https://github.com/wavetermdev/docusaurus-og.git
synced 2026-08-05 13:46:35 -07:00
fix: use the title in the page front matter for the og image if available
This commit is contained in:
@@ -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 }} />
|
||||
|
||||
Reference in New Issue
Block a user