Closed suntianc closed 4 years ago
设置 typ:“link” 报错 报什么错?
Unhandled rejection TypeError: C:\Users\hp\SuntcHome.github.io\themes\Butterfly\layout\flink.pug:6 4| .post-cards 5| ul.md-links
6| each item in i.link_list 7| li.md-links-item 8| a(href=item.link title=item.name target="_blank") 9| if theme.lazyload.enable Cannot read property 'length' of undefined
这个是全的: Unhandled rejection TypeError: C:\Users\hp\SuntcHome.github.io\themes\Butterfly\layout\flink.pug:6 4| .post-cards 5| ul.md-links
6| each item in i.link_list 7| li.md-links-item 8| a(href=item.link title=item.name target="_blank") 9| if theme.lazyload.enable
Cannot read property 'length' of undefined
at eval (eval at wrap (C:\Users\hp\SuntcHome.github.io\node_modules\pug-runtime\wrap.js:6:10),
6| each item in i.link_list 7| li.md-links-item 8| a(href=item.link title=item.name target="_blank") 9| if theme.lazyload.enable
Cannot read property 'length' of undefined
at eval (eval at wrap (C:\Users\hp\SuntcHome.github.io\node_modules\pug-runtime\wrap.js:6:10),
关键我还没配置link.yml,只是 hexo new page link,然后 type: "link" 启动 hexo 点击友链,就报这错
问题解决了,配置问题,谢谢
老哥怎么解决的,我也遇到这个问题
$ hexo s -p 80 INFO Start processing INFO Hexo is running at http://localhost:80 . Press Ctrl+C to stop. Unhandled rejection TypeError: D:\Program Files\Git\Code\hexo\huobi\themes\Butterfly\layout\flink.pug:2 1| .flink
2| each i in site.data.link 3| h1= i.class_name 4| .post-cards 5| ul.md-links
不知道哪里出错
hexo: 4.0.0 hexo-cli: 3.1.0 设置 typ:“link” 报错,换成“flink”成功 然后 友链界面设置失效