hexo-img-lazyload
v0.0.3
Published
image lazyload plugin for hexo
Downloads
1
Maintainers
Readme
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-lazyload
Usage
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 -post
to enable lazyloading in a post, or set value -page
to work in all pages.replacement
: use your loading-image url to replace the default one provided by the plugin.