Instead introduce our own tag generation logic that is based on the actual image dimensions (if not SVG) and respects the minimum dimensions for Twitters Summary Card and Summary Card with Large Image. If the image is square or its dimensions are below 300x157 (but >= 144x144), a Summary Card will be generated, otherwise a Summary Card with Large Image (or nothing in case image is of type SVG or below 144x144).
Additionally generate og:image:width, og:image:height and og:image:type.
Don't use Hugo's internal Twitter Card template since the
twitter:card
tag is basically hardcoded there.Instead introduce our own tag generation logic that is based on the actual image dimensions (if not SVG) and respects the minimum dimensions for Twitters Summary Card and Summary Card with Large Image. If the image is square or its dimensions are below 300x157 (but >= 144x144), a Summary Card will be generated, otherwise a Summary Card with Large Image (or nothing in case image is of type SVG or below 144x144).
Additionally generate
og:image:width
,og:image:height
andog:image:type
.