0.0.3 • Published 4 years ago
hexo-img-lazyload v0.0.3
Hexo-Img-Lazyload
A image lazyload plugin for hexo@^5.0.0, doesn't work in lower version.
Install
$: yarn add hexo-img-lazyload
# or
$: npm install hexo-img-lazyloadUsage
Add new conf block in your site config file - _config.yml
# _config.yml
image_lazy:
enable: true
type: post
replacement: "/path/to/loading.gif"Options
enable:whether to enable the plugin.type: optional value:post|page, set value -postto enable lazyloading in a post, or set value -pageto work in all pages.replacement: use your loading-image url to replace the default one provided by the plugin.