Skip to content

Commit 3c9d5b0

Browse files
committed
When overriding the description inside a given page, it also affects the image
1 parent efb37a0 commit 3c9d5b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinxext/opengraph/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def get_tags(
205205
app=builder.app,
206206
site_name=site_name,
207207
page_title=title,
208-
description=description,
208+
description=fields.get('og:description', description),
209209
page_path=Path(context['pagename']),
210210
site_url=ogp_canonical_url,
211211
config=config,

0 commit comments

Comments
 (0)