diff options
author | EuAndreh <eu@euandre.org> | 2020-12-28 18:20:48 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-12-28 18:20:48 -0300 |
commit | b9c0f8368f318c4bdd6ca737fd542a04f30fde5f (patch) | |
tree | fde871433ffc7c207d8f5ba9ffbcfd8fda475188 | |
parent | Remove favicon.ico (diff) | |
download | euandre.org-b9c0f8368f318c4bdd6ca737fd542a04f30fde5f.tar.gz euandre.org-b9c0f8368f318c4bdd6ca737fd542a04f30fde5f.tar.xz |
Use PNG favicon on Atom feed and audio file metadata
Diffstat (limited to '')
-rw-r--r-- | _includes/feed.atom | 2 | ||||
-rw-r--r-- | _plugins/linter.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/_includes/feed.atom b/_includes/feed.atom index 49e42f2..628cd2c 100644 --- a/_includes/feed.atom +++ b/_includes/feed.atom @@ -20,7 +20,7 @@ <author>{{ site.author.name | xml_escape }} 3</author> <webMaster>{{ site.author.email | xml_escape }} ({{ site.author.name | xml_escape }})</webMaster> <image> - <url>{{ '/' | absolute_url | xml_escape }}static/favicon.svg</url> + <url>{{ '/' | absolute_url | xml_escape }}static/favicon.png</url> <link>{{ page.url | absolute_url | xml_escape }}</link> <title>{{ site.t[include.kind].feed.title[include.lang] }}</title> </image> diff --git a/_plugins/linter.rb b/_plugins/linter.rb index f9167e1..f986191 100644 --- a/_plugins/linter.rb +++ b/_plugins/linter.rb @@ -172,11 +172,11 @@ module Jekyll end end - check_cover_cmd = "metaflac #{file} --export-picture-to=- | diff - static/favicon.svg" + check_cover_cmd = "metaflac #{file} --export-picture-to=- | diff - static/favicon.png" `#{check_cover_cmd}` unless $?.success? then - add_cover_cmd = "metaflac #{file} --import-picture-from='3|image/svg+xml||420x420x24|static/favicon.svg'" - raise "Cover art from '#{file}' doesn't match 'static/favicon.svg'.\nFix it with:\n\n#{add_cover_cmd}\n\nCheck with:\n #{check_cover_cmd}" + add_cover_cmd = "metaflac #{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}" end elsif name == 'screencasts' then stdout = `mediainfo #{file} | awk -F: '/^Movie name/ { print $2 }'`.strip |