A Hexo tag plugin to insert two images that can switch according to system theme.
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.
MIT License.