File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Misc/NEWS.d/next/Documentation Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 627
627
'image' : '_static/og-image.png' ,
628
628
'line_color' : '#3776ab' ,
629
629
}
630
- ogp_custom_meta_tags = [
631
- '<meta name="theme-color" content="#3776ab">' ,
632
- ]
633
- if 'create-social-cards' not in tags : # noqa: F821
634
- # Define a static preview image when not creating social cards
635
- ogp_image = '_static/og-image.png'
636
- ogp_custom_meta_tags += [
637
- '<meta property="og:image:width" content="200">' ,
638
- '<meta property="og:image:height" content="200">' ,
630
+ if 'builder_html' in tags : # noqa: F821
631
+ ogp_custom_meta_tags = [
632
+ '<meta name="theme-color" content="#3776ab">' ,
639
633
]
634
+ if 'create-social-cards' not in tags : # noqa: F821
635
+ # Define a static preview image when not creating social cards
636
+ ogp_image = '_static/og-image.png'
637
+ ogp_custom_meta_tags += [
638
+ '<meta property="og:image:width" content="200">' ,
639
+ '<meta property="og:image:height" content="200">' ,
640
+ ]
Original file line number Diff line number Diff line change
1
+ EPUB builds are fixed by excluding non-XHTML-compatible tags.
You can’t perform that action at this time.
0 commit comments