0.0
No commit activity in last 3 years
No release in over 3 years
A set of useful widgets for jekyll sites.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.10
~> 0.37

Runtime

~> 3.3
 Project Readme

Jekyll Widgets

A set of useful widgets for jekyll sites.

Gem Version Build Status

What it does

Jekyll Widgets is a collection of snippets for common hosted apps & widgets such as facebook comments or Google Analytics.

Installation

  1. Add the following to your site's Gemfile:
gem 'jekyll-widgets'
  1. Add the following to your site's _config.yml:
gems:
  - jekyll-widgets

Usage

Jekyll Widgets contains a number of different widgets, all with their own configuration parameters. The general syntax is as follows:

{% widget widget-name param1="var1" param2="var2" %}

You can use liquid variables too, even passing all params as a single hash.

Consider the following example:

---
provider: piwik
options:
  baseurl: //example.com
  site_id: 123
---
{% widget {{page.provider}} params=page.options %}

Is the same as:

{% widget piwik site_id=123 baseurl="//example.com" %}

Available Widgets

Analytics

Google Analytics

{% widget google_analytics tracking_id=GOOGLE_ANALYTICS_TRACKING_ID %}

GetClicky

{% widget getclicky site_id=GETCLICKY_SITE_ID %}

Mixpanel

{% widget mixpanel token=MIXPANEL_TOKEN %}

Piwik

{% widget piwik site_id=PIWIK_SITE_ID baseurl="//yoursite.com" %}

Comments

Disqus

{% widget disqus shortname=DISQUS_SHORTNAME %}

Facebook Comments

{% widget facebook_comments appid=YOUR_FACEBOOK_APP_ID num_posts=5 width=500 colorscheme="dark" %}

IntenseDebate

{% widget intensedebate account=YOUR_INTENSEDEBATE_ACCOUNT %}

Livefyre

{% widget livefyre site_id=YOUR_LIVEFYRE_SITE_ID %}

Share Buttons

DonReach

{% widget donshare providers="facebook,twitter,google,linkedin,pinterest" %}