ysk24ok / jekyll-linkpreview

Jekyll plugin to generate link preview
https://rubygems.org/gems/jekyll-linkpreview
MIT License
29 stars 8 forks source link

Deal with the case the content of og:image tag is a reletive url #4

Closed ysk24ok closed 5 years ago

ysk24ok commented 5 years ago

For example, og:image tag of docs.docker.com is as follows,

<meta property="og:image" itemprop="image primaryImageOfPage" content="/images/docs@2x.png">

The content is a relative url, and a generated preview also becomes a relative one, but it's your site's relative url, not docs.docker.com. The url should be converted to full url when generating a preview.