- Add helper to
lib/helpers
and renameicon_helpers.rb
- Using Icomoon download your icons in SVG format.
- Add to the extracted zip to
lib/assets
- Into
config.rb
add:require 'lib/helpers/icon_helpers'
helpers IconHelpers
- You can now use
<%= icon_tag(symbol: 'facebook') %>
in your template
- Add helper to
app/helpers
and renameicon_helpers.rb
- Replace
Middleman::Application.root
on line 18 withRails.root
- Using Icomoon download your icons in SVG format.
- Add to the extracted zip to
lib/assets
- Into
config.rb
add:require 'lib/helpers/icon_helpers'
helpers IconHelpers
- You can now use
<%= icon_tag(symbol: 'facebook') %>
in your template