aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_plugins/generate-favicon.rb7
-rw-r--r--default.nix1
-rw-r--r--favicon.icobin1150 -> 0 bytes
3 files changed, 8 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
diff --git a/default.nix b/default.nix
index fa15455..f949982 100644
--- a/default.nix
+++ b/default.nix
@@ -30,6 +30,7 @@ let
mediainfo
mkvtoolnix-cli
inkscape
+ imagemagick
perl
graphviz
diff --git a/favicon.ico b/favicon.ico
deleted file mode 100644
index 8ebd54f..0000000
--- a/favicon.ico
+++ /dev/null
Binary files differ