aboutsummaryrefslogtreecommitdiff
path: root/_plugins
diff options
context:
space:
mode:
Diffstat (limited to '_plugins')
-rw-r--r--_plugins/generate-favicon.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/_plugins/generate-favicon.rb b/_plugins/generate-favicon.rb
index 71fbb9e..08de8b2 100644
--- a/_plugins/generate-favicon.rb
+++ b/_plugins/generate-favicon.rb
@@ -13,6 +13,13 @@ module Jekyll
puts `inkscape -o #{png} -w #{SIZE} -h #{SIZE} #{svg}`
site.static_files << Jekyll::StaticFile.new(site, site.source, '', png)
end
+
+ ico = 'favicon.ico'
+ unless File.exist? ico then
+ puts "Missing '#{ico}', generating..."
+ puts `convert #{svg} #{ico}`
+ site.static_files << Jekyll::StaticFile.new(site, site.source, '', ico)
+ end
end
end
end