From f3f367c195e0dd392a290bb380f680effca2fa05 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 8 May 2021 19:50:40 -0300 Subject: [PATCH] =?UTF-8?q?agregar=20=C3=ADconos=20de=20fork=20awesome=20a?= =?UTF-8?q?l=20proyecto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 8 ++++++-- assets/fonts/forkawesome-webfont.woff2 | Bin 0 -> 1956 bytes fa.txt | 19 ++++++++++--------- 3 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 assets/fonts/forkawesome-webfont.woff2 diff --git a/Makefile b/Makefile index f46c664..797dac2 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ include .env export help: always ## Ayuda - @grep "^\w\+:.*##" Makefile | sed -re "s/(\w+):.*##(.*)/\x1B[38;5;197m\1\x1B[0m\t\t\2/" # | column -s ";" -t + @grep "^[^\t]\+:.*##" Makefile | sed -re "s/(.*):.*##(.*)/\1;\2/" | column -s ";" -t | sed -re "s/^([^ ]+) /\x1B[38;5;197m\1\x1B[0m/" all: node_modules fa install serve build ## Todas las tareas necesarias para desarrollar @@ -40,6 +40,10 @@ webpack-dev-server: /tmp/webpack.pid ## Servidor de prueba de Webpack fa: assets/fonts/forkawesome-webfont.woff2 ## Fork Awesome @echo -e "\a" +fa-%: always ## Agregar un ícono de Fork Awesome (reemplazar % por el nombre) + @echo Agregando $* a la lista de íconos + @grep -q "$*" fa.txt || grep '^$$fa-var-$*: ' node_modules/fork-awesome/scss/_variables.scss | sed -re "s/^.*: \"\\\(.*)\";/\1 $*/" >> fa.txt + push: ## Publica los cambios locales sudo chgrp -R 82 _site rsync -avi --delete-after _site/ root@athshe.sutty.nl:/srv/sutty/srv/http/data/_deploy/$(site).sutty.nl/ @@ -67,7 +71,7 @@ assets/js/pack.js: $(js) # Tomar los códigos de los íconos de este archivo y copiarlos a fa.txt # node_modules/font-awesome/scss/_variables.scss assets/fonts/forkawesome-webfont.woff2: fa.txt - grep -v "^#" fa.txt | sed "s/^/U+/" | tr "\n" "," | xargs -rI {} glyphhanger --subset=node_modules/fork-awesome/fonts/forkawesome-webfont.ttf --formats=woff2 --whitelist="{}" + grep -v "^#" fa.txt | sed "s/^/U+/" | cut -d " " -f 1 | tr "\n" "," | xargs -rI {} glyphhanger --subset=node_modules/fork-awesome/fonts/forkawesome-webfont.ttf --formats=woff2 --whitelist="{}" mv node_modules/fork-awesome/fonts/forkawesome-webfont-subset.woff2 $@ .PHONY: always diff --git a/assets/fonts/forkawesome-webfont.woff2 b/assets/fonts/forkawesome-webfont.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..ee8781ce68ad0d85a2667e2366d76b371194c8db GIT binary patch literal 1956 zcmV;V2V3}ePew8T0RR9100*Q13;+NC01S`-00&h70RR9100000000000000000000 z00006U;uOo1Q7@dj&zJ#0X70811t*|00bZfg%AfI8;=SAj>2)T3^7?^@p6d52uWsn zfWO~+?tQUrd%(-q!VI6ltN}}KEi}RZKd#>Y&^G^3>S6VY8CjUYfzkE0Lz|N|%gT#I zp^FOt|JPdGX{be$l<1U5D0jx+$id`e_7S&`wgs4kh)2>=Dak@bw-M3SUjX)*PSZ_R z{Uid^Z|VKCs7pxmXk-R(NiR9i0DQ~ok{!qh*Se!Dfg?-1?^{2MC0CjT0^K|3y3CeDy@S|p)5rKP5gRI?gQ}zAi1}8QkjBpk1~NM$$P{>1Jg;W z|M&1QHrG*8bI`VO(9<*04w%$MiWGp~CdtR>h6=O z`8@jA<>J+Yv>`p}ca`36+eJ{nrL>I1DdKq#IYRd`@-h6n?56YVY2G|OpQQoKDZXL{<;`>{^skSk&NZ4x7@Xh}X`wlahmfCB0PMqWNTjqZ zfEH(A_zmKg^d>5E5wA5)Cq+k58436a%lUvS`NS9^HC=aVtmiiQcx05m+k1~0lPjq% zf{Jr2A{|#qqB6QSsd+^UrF=$S!`@e%zW_HbV15&nfdX)c#U#a%CqZWICO)y|O0O_k zKmktfU_fCvFa@7T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-y zc4kxHdCnXu*rfUN*zG3L(XKAQ0kAR^ndB`BIprIvv!>L6J-kJ=0*!Ggd9upTId0K- q<452}(f4=d!;xE0E(-G{exg-PD&j&#BId-UO%!00gR+nT0000UbEXym literal 0 HcmV?d00001 diff --git a/fa.txt b/fa.txt index d7ccca4..96ae3fa 100644 --- a/fa.txt +++ b/fa.txt @@ -1,10 +1,11 @@ # node_modules/fork-awesome/scss/_variables.scss -f1e0 -f230 -f099 -f232 -f2c6 -f1a1 -f0e0 -f173 -f2e2 +f1e0 share-alt +f09a facebook +f099 twitter +f232 whatsapp +f2c6 telegram +f1a1 reddit +f0e0 envelope +f173 tumblr +f2e1 mastodon +f16d instagram