Image handling utilities for Lektor.
Project description
lektor-imgutils is a plugin for the Lektor static site generator that manipulates image files and image-related markup after the build is completed.
To use the plugin, add it to your project:
lektor plugin add lektor-imgutils
The plugin can be configured using the configs/imgutils.ini file. Each section specifies a rule that will be applied to selected images. The section key is a CSS selector key which is used to select the image elements.
Examples
Set missing width and height attributes to all images:
[img] size = intrinsic
Set lazy loading and async decoding on all images in the “.content” part:
[.content img] loading = lazy decoding = async
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lektor_imgutils-0.2.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for lektor_imgutils-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afa22db0c45e7c67657a174ef24f87592a455740322894f739178e40edfb34d5 |
|
MD5 | 78634d010e42379712a8243a099dbbe7 |
|
BLAKE2b-256 | dcb4877e48867709ccb291ec6c301241bd6434397fc7417e58556b919937cb26 |