Add anchor.js to make deep links easier
maxmeyer opened this issue · 1 comments
maxmeyer commented
Would you accept a PR for adding https://github.com/bryanbraun/anchorjs to middleman-guides? Should that be done via bower or do you prefer me to use another tool for that?
Arcovion commented
Sure, use the Gemfile
to grab the Bower asset:
gem 'rails-assets-anchor-js', '~> 1.0.1', source: 'http://rails-assets.org'
Then add it to javascripts/site.js
with Sprockets:
//= require anchor-js