diff options
author | EuAndreh <eu@euandre.org> | 2021-01-03 21:33:16 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-01-03 21:33:16 -0300 |
commit | 433428cf6b4ef8a653f349e0a0d1fa0d10aab1e7 (patch) | |
tree | f2d34cfb13a8afc47902cb5478f1fbd2d4229817 | |
parent | dengoso.ly: Add tempo marker (diff) | |
download | euandre.org-433428cf6b4ef8a653f349e0a0d1fa0d10aab1e7.tar.gz euandre.org-433428cf6b4ef8a653f349e0a0d1fa0d10aab1e7.tar.xz |
Generate favicon.ico from SVG
Diffstat (limited to '')
-rw-r--r-- | _plugins/generate-favicon.rb | 7 | ||||
-rw-r--r-- | default.nix | 1 | ||||
-rw-r--r-- | favicon.ico | bin | 1150 -> 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 Binary files differdeleted file mode 100644 index 8ebd54f..0000000 --- a/favicon.ico +++ /dev/null |