Git Product home page Git Product logo

bolt-extension-socialite's Introduction

Socialite

An extension to add asynchronous (lazy/late loading) social media buttons and widgets to your templates using {{ socialite('SocialNetwork') }} or {{ socialite({'SocialNetwork': 'variable'}) }}.

The extension is based on the Socialite JavaScript library by David Bushell and Tom Morton

Required Configuration Options

Twitter

In the extension's configuration you need to set your Twitter username in the 'twitter_handle' parameter.

For the Twitter feed setup you will need to follow these steps:

  1. Sign in to twitter.com and visit the widgets section of your settings page
  2. Click the 'Create new' button
  3. Copy the data-widget-id number from the box below 'Preview' to your config.yml file
  4. Add your Twitter handle and other settings to your configuration

Examples

Facebook

Like this page: {{ socialite('FacebookLike') }}

Like your site's Facebook page: {{ socialite({'FacebookFollow': 'https://www.facebook.com/MyPage'}) }}

Google+

+1 this page/article: {{ socialite('GooglePlusOne') }}

Share this page/article on Google+: {{ socialite('GooglePlusShare') }}

Follow your page on Google+: {{ socialite({'GooglePlusFollow': 'https://plus.google.com/u/0/+MyPage/'}) }}

Twitter

Share page/article on Twitter: {{ socialite('TwitterShare') }}

Mention your Twitter handle in a new tweet: {{ socialite('TwitterMention') }}

Follow your Twitter account: {{ socialite('TwitterFollow') }}

  • Note that TwitterFollow has compulsorary settings in config.yml to make it work.

Specify a hashtag for a new tweet: {{ socialite({'TwitterHashtag': 'HashCookies'}) }}

An embedded Twitter timeline: {{ socialite('TwitterEmbed') }}

  • Note that TwitterEmbed has compulsory settings in config.yml to make it work.

Buffer

Buffer this page/article: {{ socialite({'BufferAppButton': record.image}) }}

LinkedIn

Share on LinkedIn: {{ socialite('LinkedinShare') }}

Pinterest

PinIt on Pinterest: {{ socialite('PinterestPinit') }}

GitHub

Star a user/organisation's repo on GitHub:

{{ socialite('GitHubStar') }} (uses setting in config.yml)

or

{{ socialite({'GitHubStar': ['github_user','github_repo']}) }}

Fork a user/organisation's repo on GitHub:

{{ socialite('GitHubFork') }} (uses setting in config.yml)

or

{{ socialite({'GitHubFork': ['github_user','github_repo']}) }}

Follow a user on GitHub:

{{ socialite('GitHubFollow') }} (uses setting in config.yml)

or

{{ socialite({'GitHubFollow': 'github_user'}) }}

bolt-extension-socialite's People

Contributors

alexkb0009 avatar gwendolenlynch avatar magonzalezm avatar

Watchers

 avatar  avatar

Forkers

yoerinijs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.