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

Facebook "like" button; Twitter tweet button etc. #28

Open
3 tasks
nfreear opened this issue May 27, 2017 · 0 comments
Open
3 tasks

Facebook "like" button; Twitter tweet button etc. #28

nfreear opened this issue May 27, 2017 · 0 comments

Comments

@nfreear
Copy link
Owner

nfreear commented May 27, 2017

..

  • OpenGraph meta-data;
  • Twitter card meta-data;
  • Social buttons;

{{seo}}



  <title>Your Website Title</title>
    <!-- You can use open graph tags to customize link previews. -->
  <meta property="og:url"           content="http://www.your-domain.com/your-page.html" />
  <meta property="og:type"          content="website" />
  <meta property="og:title"         content="Your Website Title" />
  <meta property="og:description"   content="Your description" />
  <meta property="og:image"         content="http://www.your-domain.com/path/image.jpg" />

...

  <!-- Load Facebook SDK for JavaScript -->
  <div id="fb-root"></div>
  <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1";
    fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));</script>

..

  <!-- Your like button code -->
  <div class="fb-like" 
    data-href="http://www.your-domain.com/your-page.html" 
    data-layout="standard" 
    data-action="like" 
    data-show-faces="true">
  </div>

</html>
nfreear added a commit that referenced this issue Jun 14, 2017
* `_includes/meta` HTML; Plus `_posts/2017-*` Markdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant