module Jekyll class FaviconGenerator < Generator safe true priority :high SIZE = 420 def generate(site) svg = 'static/favicon.svg' png = 'static/favicon.png' unless File.exist? png then puts `inkscape -o #{png} -w #{SIZE} -h #{SIZE} #{svg}` end end end end