brianmaierjr / long-haul

A minimal, type-focused Jekyll theme.
http://brianmaierjr.com/long-haul
MIT License
674 stars 776 forks source link

og:image is not worked #64

Closed griiid closed 6 years ago

griiid commented 7 years ago

Hi, thanks for your beautiful and easy to use jekyll template!

I added Open Graph meta to my blog today and I noticed that your template has a bug that the og:image won't display!

in _includes/head.html, the code below has something wrong:

<meta content="{{ '/assets/img/touring.jpg' | prepend: site.baseurl }}" property="og:image">

In _config.yml, site.baseurl is empty so that the code above will become

<meta content="'/assets/img/touring.jpg" property="og:image">

I've tried myself to replace site.baseurl with site.url and it works, maybe you can fix it?

<meta content="{{ '/assets/img/touring.jpg' | prepend: site.url }}" property="og:image">
brianmaierjr commented 6 years ago

Made the changes, thank you!