Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

nanoc extension that adds useful helpers (facebook, google analytics, etc).

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 CHANGELOG.md
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 nanoc-fuel.gemspec
README.md

Nanoc Fuel

Build Status

Nanoc Fuel is a nanoc gem that adds helpers for Facebook (like init, button, comments) and Google (analytics).

Installation

  • You need Nanoc 3.2 or above, works with Nanoc 3.3
  • This gem requires haml 3.1 or above

If you're using bundler, just add this to your Gemfile:

gem 'nanoc-fuel'

Otherwise, you can just install the gem manually:

gem install nanoc-fuel

and then in your nanoc project, put this in lib/default.rb:

require 'nanoc-fuel/tasks'

Usage

For the Facebook/Google helpers:

In your nanoc project's lib/helpers.rb file, include one of the helpers:

include NanocFuel::Helpers::Facebook
include NanocFuel::Helpers::Google

Then, in your layout add any of these:

fb_init("FB APP ID HERE")

fb_comments("url", "num_posts", "width")

fb_like_btn("standard", "450", "true", "true")

ga_tracking("UA-XXXXX")

Contact

You can reach me at jack@jackchu.com.

Something went wrong with that request. Please try again.