Skip to content

Commit 171a80b

Browse files
committed
Allow ogp_custom_meta_tags to be a tuple
1 parent 935e434 commit 171a80b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinxext/opengraph/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def get_tags(
230230
'\n'.join(
231231
[make_tag(p, c) for p, c in tags.items()]
232232
+ [make_tag(p, c, 'name') for p, c in meta_tags.items()]
233-
+ config.ogp_custom_meta_tags
233+
+ list(config.ogp_custom_meta_tags)
234234
)
235235
+ '\n'
236236
)
@@ -335,7 +335,7 @@ def setup(app: Sphinx) -> ExtensionMetadata:
335335
app.add_config_value('ogp_type', 'website', 'html')
336336
app.add_config_value('ogp_site_name', None, 'html')
337337
app.add_config_value('ogp_social_cards', None, 'html')
338-
app.add_config_value('ogp_custom_meta_tags', [], 'html')
338+
app.add_config_value('ogp_custom_meta_tags', (), 'html')
339339
app.add_config_value('ogp_enable_meta_description', True, 'html')
340340

341341
# Main Sphinx OpenGraph linking

0 commit comments

Comments
 (0)