Closed mosdeo closed 7 years ago
格式是这样:
defaultImgs:
- http://XXXX.example.jpg
- /img/default-1.jpg
注意前面的空格。
不是這個影響,原本就有空格,剛再加上去也不行。懷疑是 pandoc 造成的差異。
發現如果我文內圖片沒有中文檔名,就可以成為預覽圖,有中文不行。
有些還是不行。
不是pandoc的影响,因为我也是用这个渲染引擎。而显示哪一个是主题控制的。(我在主题里面进行了逻辑判断)
你可以hexo clean
之后再重新生成试试
hexo clean && hexo g && hexo s
這是我的文章 source https://github.com/mosdeo/Stories/tree/master/_posts
只有這一篇可以正常顯示縮圖,其他都會變成預設圖。
待我回去先。
@mosdeo 已经更新主题,你可以备份好配置并重新pull进行更新。我在本地是测试没有问题,但很难保证你的可以通过。
更新完畢,的確已經改善,感謝大大!
原本都正常。 我剛剛重新拉 repo 以後,就看不到文章縮圖了,全部變成預設圖片。 但新舊 repo 最後一個 commit 都相同,應該是我原本的手動修改被蓋掉了。
這是我的 _config.yml,看不出哪裡有問題?
https://gist.github.com/mosdeo/eca0c2fc5587ee6d67649ae6d560b559.js