Actually add JetBrainsMono fonts

This commit is contained in:
ItsDrike 2022-07-25 12:49:38 +02:00
parent a8c8b5bc4f
commit 73290d2321
No known key found for this signature in database
GPG key ID: B014E761034AF742
18 changed files with 6 additions and 7 deletions

View file

@ -22,6 +22,8 @@ cp -r "$BASEDIR/node_modules/@fortawesome/fontawesome-free/css/all.min.css" "$ST
mkdir -p "$STATIC_BUILD/scss"
cp -r "$STATIC_SRC/scss"/* "$STATIC_BUILD/scss"
cp -r "$BASEDIR/node_modules/@fortawesome/fontawesome-free/webfonts" "$STATIC_BUILD"
mkdir -p "$STATIC_BUILD/webfonts"
cp -r "$STATIC_SRC/webfonts"/* "$STATIC_BUILD/webfonts"
cp -r "$BASEDIR/node_modules/@fortawesome/fontawesome-free/webfonts"/* "$STATIC_BUILD/webfonts"
hugo -vDEF --gc $@

View file

@ -5,10 +5,7 @@
font-style: normal;
font-family: "JetBrains Mono";
font-display: swap;
src: local("JetBrains Mono"),
local("JetBrains-Mono"),
url("../lib/JetBrainsMono/web/woff2/JetBrainsMono-Regular.woff2") format("woff2"),
url("../lib/JetBrainsMono/web/woff/JetBrainsMono-Regular.woff") format("woff"),
url("../lib/JetBrainsMono/web/eot/JetBrainsMono-Regular.eot") format("embedded-opentype"),
url("../lib/JetBrainsMono/ttf/JetBrainsMono-Regular.ttf") format("truetype");
src: url("../webfonts/JetBrainsMono/JetBrainsMono-Regular.woff2") format("woff2"),
local("JetBrains Mono"),
local("JetBrains-Mono"),
};