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 635
635
'image' : '_static/og-image.png' ,
636
636
'line_color' : '#3776ab' ,
637
637
}
638
- ogp_custom_meta_tags = [
639
- '<meta name="theme-color" content="#3776ab">' ,
640
- ]
641
- if 'create-social-cards' not in tags : # noqa: F821
642
- # Define a static preview image when not creating social cards
643
- ogp_image = '_static/og-image.png'
644
- ogp_custom_meta_tags += [
645
- '<meta property="og:image:width" content="200">' ,
646
- '<meta property="og:image:height" content="200">' ,
638
+ if 'builder_html' in tags : # noqa: F821
639
+ ogp_custom_meta_tags = [
640
+ '<meta name="theme-color" content="#3776ab">' ,
647
641
]
642
+ if 'create-social-cards' not in tags : # noqa: F821
643
+ # Define a static preview image when not creating social cards
644
+ ogp_image = '_static/og-image.png'
645
+ ogp_custom_meta_tags += [
646
+ '<meta property="og:image:width" content="200">' ,
647
+ '<meta property="og:image:height" content="200">' ,
648
+ ]
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