aboutsummaryrefslogtreecommitdiff
path: root/_plugins
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-01-10 16:19:03 -0300
committerEuAndreh <eu@euandre.org>2022-01-10 16:19:03 -0300
commit5ce6889258956754705f5ac140a376503d147d43 (patch)
tree81254ee34888dfb85e1d90249993645115bc0edd /_plugins
parentTODOs.md: Add #td-8876fc14-7f24-ebb1-4e60-adad79442005 (diff)
downloadeuandre.org-5ce6889258956754705f5ac140a376503d147d43.tar.gz
euandre.org-5ce6889258956754705f5ac140a376503d147d43.tar.xz
_plugins/generate-favicon.rb: Delete file, generate files in Makefile
Diffstat (limited to '')
-rw-r--r--_plugins/generate-favicon.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/_plugins/generate-favicon.rb b/_plugins/generate-favicon.rb
deleted file mode 100644
index ee443a3..0000000
--- a/_plugins/generate-favicon.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-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 "Missing '#{png}', generating..."
- puts `inkscape -o #{png} -w #{SIZE} -h #{SIZE} -b white #{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