Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Facebook share button #5

Open
rgaiacs opened this issue Jul 26, 2017 · 0 comments
Open

Improve Facebook share button #5

rgaiacs opened this issue Jul 26, 2017 · 0 comments

Comments

@rgaiacs
Copy link

rgaiacs commented Jul 26, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant