Shares

This feature enables Shares and Shares Count (Optional). To enable this feature, follow the steps in each section below.


Generate an API key

The Shares Count (Optional) feature requires an API key. To generate the API key, follow the steps below:

  1. Visit https://admin.sharedcount.com/admin/signup.php and create an account
  2. When your account is confirmed, log in
  3. Visit account info and copy the text next to Your API key is: and keep it safe

Add Your Configuration

The Shares feature requires configuration, to add your configuration, follow the steps below:

  1. Open partials/post/shares.hbs
  2. Remove {{!-- and --}} to add additional shares
  3. Save partials/post/shares.hbs

The Shares Count (Optional) feature requires configuration, these requirements are detailed below:

Option Note
share.data.apikey Your API key

Below is an example of how your configuration should look:

"share" : {
  "data" : {
    "apikey" : "12abc123a12345abc12a12ab12ab123ab12abc1a"
  }
},

To add your configuration, follow the steps below:

  1. Locate the theme folder. Example: /ghost/content/themes/ghost-theme/
  2. Open partials/config.hbs
  3. Add your configuration
  4. Save partials/config.hbs

Add Theme Partial

This feature requires a theme partial. To add the partial, follow the steps below:

  1. Open partials/post.hbs
  2. Find {{!> "post/shares"}}
  3. Remove the exclamation mark to add the partial
  4. Find all instances of {{!> "post/shares-count"}} (optional)
  5. Remove the exclamation mark to add the partial (optional)
  6. Save partials/post.hbs
  7. Restart Ghost

Still need help? Contact Us Contact Us