Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hexo设置图片懒加载 | vanishke个人技术博客 #45

Open
vanishke opened this issue Jan 19, 2021 · 0 comments
Open

hexo设置图片懒加载 | vanishke个人技术博客 #45

vanishke opened this issue Jan 19, 2021 · 0 comments

Comments

@vanishke
Copy link
Owner

https://hexo-sigma-eight.vercel.app/hexo/Next/blogs/hexo%E8%AE%BE%E7%BD%AE%E5%9B%BE%E7%89%87%E6%87%92%E5%8A%A0%E8%BD%BD/

下载样式在主题文件夹下的scripts文件夹里,新增一个js文件,名字可以任意。 "use strict";var cheerio = require('cheerio'); function lazyloadImg(source) { var LZ= cheerio.load(source, { decodeEn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant