Specifying alt text for site-wide social metadata image? #6731
-
DescriptionIs there currently a way to specify alt text for images in site-wide social metadata (
project:
type: website
website:
title: Test
navbar:
left:
- href: "index.qmd"
text: About
site-url: "https://www.example.com/"
twitter-card:
description: Description
image: "img/thumbnail.png"
image-alt: Thumbnail
open-graph:
description: Description
image: "img/thumbnail.png"
image-alt: Thumbnail YAML header for title: About
image: "img/headshot.png"
image-alt: Headshot
about:
template: trestles Social metadata in rendered <meta property="og:title" content="Test - About">
<meta property="og:description" content="Description">
<meta property="og:image" content="https://www.example.com/img/thumbnail.png">
<meta property="og:site-name" content="Test">
<meta property="og:image:height" content="40">
<meta property="og:image:width" content="40">
<meta property="og:image:alt" content="Headshot">
<meta name="twitter:title" content="Test - About">
<meta name="twitter:description" content="Description">
<meta name="twitter:image" content="https://www.example.com/img/thumbnail.png">
<meta name="twitter:image-height" content="40">
<meta name="twitter:image-width" content="40">
<meta name="twitter:image:alt" content="Headshot">
<meta name="twitter:card" content="summary_large_image"> The image pointed to in the HTML metadata does not match the associated alt text, and specifying |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I think this is a bug - we've been improving our support for site wide images and social metadata images and may have just overlooked this scenario. I've opened #6732 for this and will try to fix it soon! |
Beta Was this translation helpful? Give feedback.
I think this is a bug - we've been improving our support for site wide images and social metadata images and may have just overlooked this scenario. I've opened #6732 for this and will try to fix it soon!