杨舟
杨舟
@bl00mber I tried pass `isValid` prop as function to do validation, and the callback function will change state, however, I think it's kind of tricky. - During render method, the...
Thanks man, Looking forward!
Is there anyone approved?
Looks like it's related with config like env. Have you do the copy .env file? How about local side? It worked fine in my side previously.
we can create a custom fileTransfomer and use it ``` // fileTransformer.js const path = require('path'); module.exports = { process(sourceText, sourcePath, options) { return { code: `module.exports = ${JSON.stringify(path.basename(sourcePath))};`, };...
你是考虑到一进页面不是从顶部开始的这种情况?
嗯,最近抽空加上了,可在post 的front-matter 添加属性关闭: ``` lazyimage: no ```
可以给个你用的主题或者在线blog 吗?不是很确定问题原因,只能猜测可能是 third-party-fix.js 这个文件执行顺序的问题
抱歉才回复,一直没重现问题, 请问这个问题在Next 下现在还有吗?如果还有,其实现在不需要手动修改scripts.js 文件,你可以删除试试看。 最近发现,如果图片地址不对导致加载失败,也会导致一直处于loading 图片状态。
我在本地试了最新的icarus 主题,只需要在_config.yml配置文件里,加上插件配置就可以了,默认页面加载时可以懒加载,点击图片也能正常显示图片。并不需要像https://github.com/Troy-Yang/hexo-lazyload-image/issues/1 这里的手动改动,实际上,这个改动已经集成进这个插件了 ``` theme: icarus deploy: type: '' lazyload: enable: true onlypost: false # optional loadingImg: # optional eg ./images/loading.gif isSPA: false # optional preloadRatio: 3 # optional, default...