Skip to content

InPoint-Automation/AltTextWarning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alt Text Warning

Icon

Description

Alt Text Warning is a Publii plugin that catches images with missing or empty alt text.

In preview mode it outlines each offending image in red with a "Missing alt text" label so you can fix it before publishing.

When building the actual site it fills in fallback alt text from a configurable pattern, so pages never have empty alt attributes.

Features

  • Outlines images with missing/empty alt text in preview, with a warning label
  • Auto-generates fallback alt text in production builds from a pattern

Requirements

Publii 0.43.0 or newer.

Installation

  1. Download the release ZIP.
  2. Publii -> Tools -> Plugins -> Install plugin -> pick the ZIP.
  3. Enable the plugin for the site.

Usage

Open Plugins -> Alt Text Warning -> settings icon.

Set the Fallback alt text pattern (default {title} image), and Apply to to use it on posts, pages, or both.

Preview the site to see missing-alt images flagged in red.

screenshot

Contributing

Feel free to fork this project or contribute a PR. Build instructions can be found in the developer readme DEV.md.

Licenses

Main code

This project is licensed under the GPLv3+. See LICENSE file for details.

Third-Party Components

None, the plugin is self-contained plain JavaScript with no dependencies.

Credits

This project was developed by InPoint Automation Sp. z o.o. https://inpointautomation.com/

Thanks to the Publii project for the CMS and plugin API.

Changelog

See CHANGELOG.md for the full version history.

About

A Publii plugin that flags images missing Alt Text so you can fix it before publishing.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages