iissnan / hexo-theme-next

Elegant theme for Hexo.
http://notes.iissnan.com
MIT License
15.87k stars 3.62k forks source link

分享到微信没有缩略图 #1802

Closed myjeshurun closed 6 years ago

myjeshurun commented 7 years ago

I agree and want to create new issue


Expected behavior

  1. 我的博客中含有图片,我预期把他分享到朋友圈(使用QQ浏览器)之后,能够像人们常见的公众号文章出现缩略图,这样看起来要美观好多。

Actual behavior

没有缩略图,只有一个链接标志。

Steps to reproduce the behavior

Link to demo site with this issue: N/A Link(s) to source code or any usefull link(s): N/A

NexT Information

NexT Version:

[ x] Master
[ ] Latest Release
[ ] Old version - 

NexT Scheme:

[ ] All schemes
[ ] Muse
[ x] Mist
[ ] Pisces

Other Information

ivan-nginx commented 7 years ago

@myjeshurun can u explain in English?

myjeshurun commented 7 years ago

Yes. When I share to wechat, I want to present my page with a thumbnail image, like the first item in the picture; but what I get is the second one without a thumbnail picture.

Thank you.

Blessings in Christ,

Jeshurun 我的仆人雅各,我所拣选的耶书崙哪,不要害怕! Don’t be afraid, Jacob my servant; and you, Jeshurun, whom I have chosen.

On Tue, Aug 8, 2017 at 11:04 PM, Ivan.Nginx notifications@github.com wrote:

@myjeshurun https://github.com/myjeshurun can u explain in English?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iissnan/hexo-theme-next/issues/1802#issuecomment-321139536, or mute the thread https://github.com/notifications/unsubscribe-auth/AVdc3BrrxJzLI-5HBEGUVi58kHLbvUp2ks5sWSGygaJpZM4OunR7 .

ivan-nginx commented 7 years ago

@myjeshurun about what pictures u speak?

ghost commented 7 years ago

@ivan-nginx I think he means like this. test-image

myjeshurun commented 7 years ago

@starry-s exactly. Thx.

On Wed, Aug 16, 2017, 07:09 STARRY-S notifications@github.com wrote:

@ivan-nginx https://github.com/ivan-nginx I think he means like this. [image: test-image] https://user-images.githubusercontent.com/21214244/29360619-586e7c18-82b6-11e7-98cc-39a24a2b1322.jpg

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iissnan/hexo-theme-next/issues/1802#issuecomment-322737877, or mute the thread https://github.com/notifications/unsubscribe-auth/AVdc3BX0JcaYQEYCFJX8BhpfGvUrHmwDks5sYs3SgaJpZM4OunR7 .

whyliam commented 7 years ago

@myjeshurun 缩略图是微信自己生成的,要求图片大于300px x 300px

myjeshurun commented 7 years ago

是的,但即使我blog中有图片也不会出现缩略图,但简书jianshu.com 上的文章就会。

On 2017年9月4日周一 08:53 whyliam notifications@github.com wrote:

@myjeshurun https://github.com/myjeshurun 缩略图是微信自己生成的,要求图片大于300px x 300px

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iissnan/hexo-theme-next/issues/1802#issuecomment-326956137, or mute the thread https://github.com/notifications/unsubscribe-auth/AVdc3MTfNxFMqrvgthXxPGgeFmlIz7UGks5se_KugaJpZM4OunR7 .

Haocen commented 7 years ago

@myjeshurun 简书,亚马逊这些八成是对 bot 抓取做了特殊优化了,要求一个静态页面做到相同效果似乎是很难的。

The website that is capable of generating thumbnails when linked by third party app probably handle crawlers specifically by dynamically generating response based on user-agent, it doesn't seemed possible for Hexo to do the same.

myjeshurun commented 7 years ago

OK. Now I understand. Thank you for your explanation.

On Thu, Sep 14, 2017, 16:33 Haocen notifications@github.com wrote:

@myjeshurun https://github.com/myjeshurun 简书,亚马逊这些八成是对 bot 抓取做了特殊优化了,要求一个静态页面做到相同效果似乎是很难的。

The website that is capable of generating thumbnails when linked by chatting app probably handle crawlers specifically by dynamically generating response based on user-agent, it doesn't seemed possible for Hexo to do the same.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iissnan/hexo-theme-next/issues/1802#issuecomment-329600778, or mute the thread https://github.com/notifications/unsubscribe-auth/AVdc3PbmxpbyCmbmvpmOJSqkbD3JfDdmks5siY2LgaJpZM4OunR7 .

Haocen commented 7 years ago

微信要求网站已经注册公众号且在页面上引入他们的 JSSDK 才能自定义缩略图。这是我从官方获得的回答。

与此同时你也可以查看以下方法,不一定保证有效: https://flniu.github.io/blog/2017/03/14/wechat-share-link-thumbnail/

It has been confirmed WeChat JSSDK has to be used in order to allow the crawler parse the content. At the meantime your website has to be registered on WeChat public channels.

myjeshurun commented 7 years ago

is there a way to use JSSDK on the hexo website?

Blessings in Christ,

Jeshurun 我的仆人雅各,我所拣选的耶书崙哪,不要害怕! Don’t be afraid, Jacob my servant; and you, Jeshurun, whom I have chosen.

On Mon, Sep 18, 2017 at 1:51 PM, Haocen notifications@github.com wrote:

微信要求网站已经注册公众号且在页面上引入他们的 JSSDK 才能自定义缩略图。

It has been confirmed WeChat JSSDK has to be used in order to allow the crawler parse the content. At the meantime your website has to be registered on WeChat public channels.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iissnan/hexo-theme-next/issues/1802#issuecomment-330303446, or mute the thread https://github.com/notifications/unsubscribe-auth/AVdc3FhcDPa2kIu4K-dqPPTExrFvPkGUks5sjq2RgaJpZM4OunR7 .

Haocen commented 7 years ago

Obviously the answer is yes, but you have to research it yourself, if you have access to WeChat JSSDK and registered as public channel.

You're welcomed to make a PR once you figure out a solution.

ivan-nginx commented 7 years ago

@Haocen @myjeshurun this issue may be closed?

zbl19962 commented 6 years ago

微信要求网站已经注册公众号且在页面上引入他们的 JSSDK 才能自定义缩略图。

ivan-nginx commented 6 years ago

NexT is rebased into organization repo. If you want new feature, fix, or support, create new in NexT v6.x repo (desirable in English).

There is instructions on English or Chinese how to update from v5.1.x to v 6.x

You also may read this for details.