A social card in a template
What a layout reads on page.card: the card Statac draws for the page, or the social image its og_image names.
url
The URL of the card’s image, starting with /. If the site’s url has a path, such as https:/, the URL starts with that path, /blog/. A card Statac draws is published beside the page, and its file name changes whenever the card does.
width
The card’s width in pixels: 1200 for a card Statac draws. Empty for a social image whose size Statac doesn’t know.
height
The card’s height in pixels: 630 for a card Statac draws. Empty for a social image whose size Statac doesn’t know.
alt
The card’s alt text. For a card Statac draws, it is the words on the card. For a social image, it is the image’s own alt text, or if it has none, the page’s title.
Something unclear or wrong? Open an issue.