Skip to content

Commit 7176aa1

Browse files
committed
feat(og): show pitch only on landing pages (no doc title or description)
1 parent a5709f5 commit 7176aa1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/og/template.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ export function buildOgTree(props: TemplateProps): ReactElement {
8686
</span>
8787
) : null}
8888
</div>
89-
{props.pitch ? (
89+
{!props.docTitle && !props.description && props.pitch ? (
9090
<div
9191
style={{
9292
fontSize: 28,
9393
fontWeight: 500,
9494
lineHeight: 1.3,
9595
color: props.accentColor,
96-
marginBottom: props.docTitle || props.description ? 22 : 0,
96+
marginBottom: 0,
9797
}}
9898
>
9999
{props.pitch}

0 commit comments

Comments
 (0)