patrick330602 / hexo-tag-dynamic-images

A Hexo tag plugin to insert two images that can switch according to system theme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A Hexo tag plugin to insert two images that can switch according to system theme

License:MIT License


Languages

Language:JavaScript 100.0%