Skip to content

[feature] Ability to specify alt text for link images #1182

@pete-woods

Description

@pete-woods

What happened?

<img src="{{ $permalink }}" loading="lazy">

I think it needs adding here? This is setting off my accessibility linter at the moment.

---
title: Links
links:
  - title: Somewhere
    description: Description
    website: https://example.com
    image: https://example.com/image.png
    alt: This is an image of something # This would be a new attribute
---

Hugo version

0.150.0

Theme version

3.31.0

Relevant log output

========================================================================
links/index.html
  alt attribute missing --- links/index.html -->

Link to Minimal Reproducible Example

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions