require 'jekyll/fontawesome/svg/fa-icon' module Jekyll module FontAwesome module Svg class FontAwesomeSvgItemGenerator < Liquid::Tag def initialize(tag_name, markup, tokens) super @tmp_markup = markup end def render(context) faIcon = context[@markup] ||= @tmp_markup @icon = FontAwesomeIcon.new(faIcon.strip) unless context.environments.first['page']['fa_svg'].is_a?([]::class) context.environments.first['page']['fa_svg'] = [] end context.environments.first['page']['fa_svg'].push(@icon.value) "" end end end end end