<commit_before># Share it

This package is based on packages [joshowens:shareit](https://atmospherejs.com/joshowens/shareit) and [lovetostrike:shareit](https://atmospherejs.com/lovetostrike/shareit). It containes some bugfixes for Facebook and Twitter.

The package is compatible with Meteor 1.2.


I've built social sharing buttons a few times and decided it was time to extract it to a package! The goal of this package is to do a few things:

* Render appropriate meta tags for Facebook/OG and Twitter (via spiderable)
* Support social sharing buttons with bootstrap-3 (default) and font-awesome
* Expand to support other social platforms besides just twitter & facebook, in a configurable way

## Quick Start

    meteor add liberation:share-it

## Usage

Simply put `{{>shareit}}` in your template.  We use the following keys in your
**current data context** (more on this below):

* `title`
* `author` - expects a string or a function (see below).  The function is used only for twitter.  If an object is returned, and `author.profile.twitter` exists, this value will be used instead.
* `excerpt` or `description` or `summary`  in FB and Twitter

and optionally:

* `url` - defaults to current page URL
* `sitenap` - defaults to current page hostname
* `thumbnail` - `image` in FB and Twitter.  Expects a function (see below).

Notes:
<commit_msg>fixed typo<commit_after># Share it

This package is based on packages [joshowens:shareit](https://atmospherejs.com/joshowens/shareit) and [lovetostrike:shareit](https://atmospherejs.com/lovetostrike/shareit). It containes some bugfixes for Facebook and Twitter.

The package is compatible with Meteor 1.2.


I've built social sharing buttons a few times and decided it was time to extract it to a package! The goal of this package is to do a few things:

* Render appropriate meta tags for Facebook/OG and Twitter (via spiderable)
* Support social sharing buttons with bootstrap-3 (default) and font-awesome
* Expand to support other social platforms besides just twitter & facebook, in a configurable way

## Quick Start

    meteor add liberation:shareit

## Usage

Simply put `{{>shareit}}` in your template.  We use the following keys in your
**current data context** (more on this below):

* `title`
* `author` - expects a string or a function (see below).  The function is used only for twitter.  If an object is returned, and `author.profile.twitter` exists, this value will be used instead.
* `excerpt` or `description` or `summary`  in FB and Twitter

and optionally:

* `url` - defaults to current page URL
* `sitenap` - defaults to current page hostname
* `thumbnail` - `image` in FB and Twitter.  Expects a function (see below).

Notes:

{'fraction_non_alphanumeric': 0.08179126572908957, 'fraction_numerical': 0.0022205773501110288, 'mean_word_length': 4.395209580838324, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3327318', 'n_tokens_mistral': 788, 'n_tokens_neox': 753, 'n_words': 365}