Class: Jekyll::Favicon::Tag

Inherits:
Liquid::Tag
  • Object
show all
Defined in:
lib/jekyll/favicon/tag.rb

Overview

New ‘favicon` tag include html tags on templates

Instance Method Summary collapse

Instance Method Details

#render(context) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/jekyll/favicon/tag.rb', line 10

def render(context)
  context.registers[:site]
    .static_files
    .select { |static_file| static_file.is_a? StaticFile }
    .select(&:taggable?)
    .collect(&:tags)
    .flatten
    .join("\n")
end