mirror of
https://github.com/wavetermdev/docusaurus-og.git
synced 2026-08-05 13:46:35 -07:00
fix: render version label in og image only if version.badge is set to true
This commit is contained in:
@@ -110,7 +110,9 @@ const docsImageRenderer = imageRendererFactory(
|
||||
<span style={{ textTransform: 'capitalize' }}>
|
||||
{doc.plugin.id === 'default' ? 'Docs' : doc.plugin.id}
|
||||
</span>,
|
||||
doc.version.label && <span>{doc.version.label}</span>,
|
||||
doc.version.badge && doc.version.label && (
|
||||
<span>{doc.version.label}</span>
|
||||
),
|
||||
]}
|
||||
logo={<img src={logo.src} style={{ height: 120 }} />}
|
||||
/>,
|
||||
|
||||
Reference in New Issue
Block a user