add font awesome
This commit is contained in:
parent
c165bd3574
commit
c4945cb8c1
2 changed files with 17 additions and 1 deletions
15
lib/helpers/font_awesome.rb
Normal file
15
lib/helpers/font_awesome.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
#totaal geen plagiaat
|
||||
module FontAwesomeHelper
|
||||
def fa(icon, opts = {})
|
||||
classes = ['fa', "fa-#{icon}"]
|
||||
|
||||
classes << "fa-#{opts[:size]}" if opts[:size]
|
||||
classes << 'fa-li' if opts[:li]
|
||||
classes << "fa-stack-#{opts[:stack]}" if opts[:stack]
|
||||
classes << 'fa-inverse' if opts[:inverse]
|
||||
classes << 'fa-fw' if opts[:fw]
|
||||
classes << opts[:class]
|
||||
|
||||
"<i class='#{classes.reject(&:nil?).join(' ')}'></i>"
|
||||
end
|
||||
end
|
|
@ -3,4 +3,5 @@ use_helper Nanoc::Helpers::Rendering
|
|||
use_helper Nanoc::Helpers::ChildParent
|
||||
|
||||
use_helper NavigationHelper
|
||||
use_helper VerenigingenLists
|
||||
use_helper VerenigingenLists
|
||||
use_helper FontAwesomeHelper
|
Loading…
Reference in a new issue