LeNPaul / Millennial

A minimalist Jekyll theme for running a blog or publication powered by Jekyll and GitHub Pages

Home Page:https://lenpaul.github.io/Millennial/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve Facebook share button

rgaiacs opened this issue · comments

Facebook share button uses Open Graph protocol. We could improve the share button by including

  <meta property="og:site_name" content="{{ site.data.setting.title }}" />
  <meta property="og:title" content="{{ page.title }}" />
  <meta property="og:type" content="website" />
  <meta property="og:url" content="{{ site.url }}{{ page.url }}" />
  <meta property="og:image" content="{{ site.url }}/images/{{ page.image.feature }}" />

on _includes/head.html and changing the share button to

<a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i></a>

on _layouts/post.html.