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. Each section must have a “selector” key which is a CSS selector to select the image elements. The section names are insignificant.
Examples
Set missing width and height attributes to all images:
[default] selector = img size = yes
Set lazy loading and async decoding on all images in the “.content” part:
[content] selector = .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.1.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for lektor_imgutils-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6b43ad645c185be904c1767239dd895b40bfac52df971be1d8dfdc9733b533f |
|
MD5 | 0d27d2eedea1e6f6fde869c468bfccef |
|
BLAKE2b-256 | a5b44a9f7e9622ce5a4fc41cefbab55b768cf30840e81c4de0866e96fa5b562f |