From b29a2ca64a3d0536986693b6ad54b7aea8be7330 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 12 Apr 2022 14:06:23 -0300 Subject: Rename favicon to lord-favicon --- .gitignore | 3 +- Makefile | 14 ++++++---- _includes/feed.atom | 2 +- _layouts/default.html | 2 +- _layouts/slides.html | 2 +- _plugins/linter.rb | 6 ++-- _tils/2020-12-29-svg-favicon.md | 9 +++--- static/favicon.svg | 62 ----------------------------------------- static/lord-favicon.svg | 62 +++++++++++++++++++++++++++++++++++++++++ 9 files changed, 84 insertions(+), 78 deletions(-) delete mode 100644 static/favicon.svg create mode 100644 static/lord-favicon.svg diff --git a/.gitignore b/.gitignore index f653bb6..9d67eef 100644 --- a/.gitignore +++ b/.gitignore @@ -13,9 +13,10 @@ *.ogg *.torrent *.checksum -/static/favicon.png +/static/lord-favicon.png /music/*.pdf /music/*.midi +/static/lord-favicon.ico /favicon.ico /drafts/ diff --git a/Makefile b/Makefile index b5c85e4..2163b68 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ lilypond = \ $(lilypond.midi) \ $(lilypond.ogg) -favicons = static/favicon.png favicon.ico +favicons = static/lord-favicon.png static/lord-favicon.ico favicon.ico podcasts.flac = \ resources/podcasts/2020-12-19-a-test-entry.flac @@ -70,11 +70,15 @@ deps.mk: torrent-files.txt $(torrents): files.mk deps.mk $(MAKE) -f dynamic.mk torrents -static/favicon.png: static/favicon.svg - inkscape -o $@ -w 2048 -h 2048 -b white static/favicon.svg +static/lord-favicon.png: static/lord-favicon.svg + inkscape -o $@ -w 2048 -h 2048 -b white static/lord-favicon.svg + +static/lord-favicon.ico: static/lord-favicon.svg + convert static/lord-favicon.svg $@ + +favicon.ico: static/lord-favicon.ico + ln -fs static/lord-favicon.ico $@ -favicon.ico: static/favicon.svg - convert static/favicon.svg $@ diff --git a/_includes/feed.atom b/_includes/feed.atom index 83187d7..6ea84b3 100644 --- a/_includes/feed.atom +++ b/_includes/feed.atom @@ -20,7 +20,7 @@ {{ site.author.name | xml_escape }} 3 {{ site.author.email | xml_escape }} ({{ site.author.name | xml_escape }}) - {{ '/' | absolute_url | xml_escape }}static/favicon.png + {{ '/' | absolute_url | xml_escape }}static/lord-favicon.png {{ page.url | absolute_url | xml_escape }} {{ site.t[include.kind].feed.title[include.lang] }} diff --git a/_layouts/default.html b/_layouts/default.html index 38578b7..991d239 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -4,7 +4,7 @@ - + diff --git a/_layouts/slides.html b/_layouts/slides.html index 1cc5cc5..7fb0953 100644 --- a/_layouts/slides.html +++ b/_layouts/slides.html @@ -2,7 +2,7 @@ - + diff --git a/_plugins/linter.rb b/_plugins/linter.rb index 0ccc92d..ad9b38e 100644 --- a/_plugins/linter.rb +++ b/_plugins/linter.rb @@ -151,11 +151,11 @@ module Jekyll end end - check_cover_cmd = "metaflac #{file} --export-picture-to=- | diff - static/favicon.png" + check_cover_cmd = "metaflac #{file} --export-picture-to=- | diff - static/lord-favicon.png" `#{check_cover_cmd}` unless $?.success? then - add_cover_cmd = "metaflac --remove-all #{file}\nmetaflac #{file} --import-picture-from=static/favicon.png" - raise "Cover art from '#{file}' doesn't match 'static/favicon.png'.\nFix it with:\n\n#{add_cover_cmd}\n\nCheck with:\n #{check_cover_cmd}" + add_cover_cmd = "metaflac --remove-all #{file}\nmetaflac #{file} --import-picture-from=static/lord-favicon.png" + raise "Cover art from '#{file}' doesn't match 'static/lord-favicon.png'.\nFix it with:\n\n#{add_cover_cmd}\n\nCheck with:\n #{check_cover_cmd}" end elsif name == 'screencasts' then stdout = `mediainfo #{file} | awk -F: '/^Movie name/ { print $2 }'`.strip diff --git a/_tils/2020-12-29-svg-favicon.md b/_tils/2020-12-29-svg-favicon.md index 2b9ff23..54cca9a 100644 --- a/_tils/2020-12-29-svg-favicon.md +++ b/_tils/2020-12-29-svg-favicon.md @@ -91,8 +91,9 @@ getting the final result I manually cleaned-up the generated XML: ``` -The good thing about this new favicon (at [`/static/favicon.svg`](/static/favicon.svg)) -is that a) it is simple enough that I feel +The good thing about this new favicon +(at [`/static/lord-favicon.svg`](/static/lord-favicon.svg)) is that +a) it is simple enough that I feel comfortable editing it manually and b) it is an SVG, which means I can generate any desired size. @@ -129,5 +130,5 @@ end ``` I had to increase the priority of the generator so that it would run before -other places that would use a `{% link /static/favicon.png %}`, otherwise the -file would be considered missing. +other places that would use a `{% link /static/lord-favicon.png %}`, otherwise +the file would be considered missing. diff --git a/static/favicon.svg b/static/favicon.svg deleted file mode 100644 index ce566b2..0000000 --- a/static/favicon.svg +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/static/lord-favicon.svg b/static/lord-favicon.svg new file mode 100644 index 0000000..ce566b2 --- /dev/null +++ b/static/lord-favicon.svg @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3