dsrkafuu / hugo-theme-fuji

A minimal Hugo theme with nice theme color. | 一个主题色极简 Hugo 主题。
https://github.dsrkafuu.net/hugo-theme-fuji/
Apache License 2.0
367 stars 97 forks source link

og image cannot be replaced. #63

Closed rexarski closed 3 years ago

rexarski commented 3 years ago

I followed the instruction in README to replace the open graph variable with my own og.png. Now the image be accessed through https://qrui.xyz/img/og.png, but whenever I share my link within Telegram, it still appear to be the one from the theme.

iShot2020-12-27 15 34 40
dsrkafuu commented 3 years ago

The preview from Facebook Debugger shows the right og image: https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Fqrui.xyz

So it is possible that the old images were cached by telegram when sharing the site before the og images were replaced. You can try to change the file name and the corresponding link like _opengraph.[ext], in any case, it should be a telegram problem.

However, the best practice for og images is to use absolute urls, so I have made a fix, please refer to this release v2.5.0 to update the theme and maybe fix the issue.

rexarski commented 3 years ago

Thank you!