hexo-tag-dynamic-images
v1.0.0
Published
A Hexo tag plugin to insert two images that can switch according to system theme
Downloads
2
Readme
hexo-tag-dynamic-images
A Hexo tag plugin to insert two images that can switch according to system theme.
Usage
Install by npm install hexo-tag-dynamic-images --save
.
You can use the tag as {% dynimg [light images] [dark images] <alt> <class> %}
, Where alt
(Alternative text) and class
(class assigned to the <picture>
tag, by default dynamic-img
) are optional.
License
MIT License.