A Pelican plugin that minifies fontawesome css and fonts to include only used icons.
git clone https://mcol.xyz/code/pelican-minify-fontawesome
Log | Files | Refs | README

commit 323c4b1bc6ff6f266cd9330c8d97fcb4e796fc52
parent 1684403ccb9cbc01613ffb460f47460f1b7b3600
Author: mcol <mcol@posteo.net>
Date:   Fri, 31 Jul 2020 00:07:30 +0100

don't fail if target folder already exists

Diffstat:
Mminify_fontawesome.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/minify_fontawesome.py b/minify_fontawesome.py @@ -36,7 +36,8 @@ def copy_glyphs(source, dest, css_blocks): match = re.findall('\.fa-(.*?):', block) icons.append(match[0]) - os.mkdir(dest) + if not os.path.isdir(dest): + os.mkdir(dest) for root, dirs, files in os.walk(source): for f in files: if f.endswith('woff'):