Add separate alt text to featured images #30

Open
opened 2025-06-28 18:21:28 +02:00 by kjz · 0 comments

At the moment we can use this front matter to generate a featured image to use in archives, and a post:

image: /path/to/image.jpg
image_caption: Optional caption for the image

The generated image will use the image_caption to generate both its alt text and a caption wrapped in a div.

alt text should only provide a textual alternative to an image. A caption serves a different purpose. For example, a picture of a cat may require descriptive alt text such as A black cat with green eyes drinking from a saucer of milk. while the caption may provide a credit, such as Image credit: kjz.

The most obvious approach would be to add additional front matter, such as image_alt.

At the moment we can use this front matter to generate a featured image to use in archives, and a post: ``` image: /path/to/image.jpg image_caption: Optional caption for the image ``` The generated image will use the `image_caption` to generate both its `alt` text and a caption wrapped in a `div`. `alt` text should only provide a textual alternative to an image. A caption serves a different purpose. For example, a picture of a cat may require descriptive `alt` text such as `A black cat with green eyes drinking from a saucer of milk.` while the caption may provide a credit, such as `Image credit: kjz`. The most obvious approach would be to add additional front matter, such as `image_alt`.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: stefano/BSSG#30
No description provided.