GeekaholicLin / hexo-theme-ylion

:blush: 说不定是一个让你感到惊喜的hexo主题 :beers: :candy:
http://blog.geekaholic.cn
MIT License
120 stars 30 forks source link

看不到文章縮圖了,全部變成預設圖片 #29

Closed mosdeo closed 7 years ago

mosdeo commented 7 years ago

原本都正常。 我剛剛重新拉 repo 以後,就看不到文章縮圖了,全部變成預設圖片。 但新舊 repo 最後一個 commit 都相同,應該是我原本的手動修改被蓋掉了。

這是我的 _config.yml,看不出哪裡有問題?
https://gist.github.com/mosdeo/eca0c2fc5587ee6d67649ae6d560b559.js

GeekaholicLin commented 7 years ago

格式是这样:

defaultImgs:
  - http://XXXX.example.jpg
  - /img/default-1.jpg

注意前面的空格。

mosdeo commented 7 years ago

不是這個影響,原本就有空格,剛再加上去也不行。懷疑是 pandoc 造成的差異。 發現如果我文內圖片沒有中文檔名,就可以成為預覽圖,有中文不行。 有些還是不行。

GeekaholicLin commented 7 years ago

不是pandoc的影响,因为我也是用这个渲染引擎。而显示哪一个是主题控制的。(我在主题里面进行了逻辑判断)

你可以hexo clean之后再重新生成试试

mosdeo commented 7 years ago

其實我都是用 hexo clean && hexo g && hexo s

這是我的文章 source https://github.com/mosdeo/Stories/tree/master/_posts

只有這一篇可以正常顯示縮圖,其他都會變成預設圖。

GeekaholicLin commented 7 years ago

待我回去先。

GeekaholicLin commented 7 years ago

@mosdeo 已经更新主题,你可以备份好配置并重新pull进行更新。我在本地是测试没有问题,但很难保证你的可以通过。

mosdeo commented 7 years ago

更新完畢,的確已經改善,感謝大大!