GeekaholicLin / hexo-theme-ylion

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

可以部分文章指定縮圖嗎? #39

Closed mosdeo closed 7 years ago

mosdeo commented 7 years ago

目前縮圖是從文章裡隨機挑選,但是有些文章我會想要指定縮圖,讓讀者在預覽階段就比較有"感覺"。這是我很想要的功能,請問目前有辦法做到嗎?

這個功能我願意打賞 1000 TWD 給@GeekaholicLin

GeekaholicLin commented 7 years ago

这个功能实现了的,我一翻issue,看到类似的issue #24 也是你提出的 😂

规则:Front-matter中的自定义'img'字段 > 文章内的图片(随机获取) > defaultImgs(随机获取) 【来自README】

你看看是不是你需要的~

PS: 你倒是提醒了我还有一个bug没修 😂

mosdeo commented 7 years ago

但目前已經實現的是全局設定吧? 我是希望可以個別文章指定選擇哪一個縮圖,最好在原始的 markdown 裡面就可以指定。

2017年10月13日 09:29,"noone" notifications@github.com寫道:

这个功能实现了的,我一翻issue,看到类似的issue #24 https://github.com/GeekaholicLin/hexo-theme-ylion/issues/24 也是你提出的 😂

规则:Front-matter中的自定义'img'字段 > 文章内的图片(随机获取) > defaultImgs(随机获取) 【来自README】

你看看是不是你需要的~

PS: 你倒是提醒了我还有一个bug没修 😂

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/GeekaholicLin/hexo-theme-ylion/issues/39#issuecomment-336325399, or mute the thread https://github.com/notifications/unsubscribe-auth/AGkzz7CpvWeOH7XLG4J8oxoPaS4_Z3Lyks5srrzqgaJpZM4P3XUC .

GeekaholicLin commented 7 years ago

不不不,不是的,你可以像添加文章title一样添加img即可实现:

---
title: AMD等模块化的简单原理
img: http://example.com/xxx.jpg
---
mosdeo commented 7 years ago

@GeekaholicLin rmb220

mosdeo commented 7 years ago

文章縮圖都已經修改成功。

GeekaholicLin commented 7 years ago

把最后的图片撤下吧(:зゝ∠)

mosdeo commented 7 years ago

把最后的图片撤下吧(:зゝ∠)

雖然你堅持把錢退回給我,但是我希望留著這張圖,以免被後人說我言而無信。

GeekaholicLin commented 7 years ago

也有道理 😂