No description
tests | ||
.gitignore | ||
CHANGES.rst | ||
lektor_imgutils.py | ||
LICENSE.txt | ||
pyproject.toml | ||
README.rst | ||
requirements-dev.txt | ||
requirements.txt |
lektor-imgutils =============== lektor-imgutils is a plugin for the `Lektor <https://www.getlektor.com>`_ 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