From be2e31503fca7b059148f04cc93ce3876f7b3316 Mon Sep 17 00:00:00 2001 From: Miao Wang Date: Wed, 10 Apr 2024 01:04:19 +0800 Subject: [PATCH] migrate webfont --- _includes/footer.html | 8 - _includes/head.html | 2 - _src/entrypoints/default.js | 7 + _src/styles/_lato.scss | 47 ++++ _src/styles/global.scss | 27 ++- package-lock.json | 20 +- package.json | 5 +- static/css/_Lato.scss | 36 --- static/css/style.scss | 15 -- static/fonts/Lato-Bold.eot | Bin 256056 -> 0 bytes static/fonts/Lato-Bold.ttf | Bin 600856 -> 0 bytes static/fonts/Lato-Bold.woff | Bin 309728 -> 0 bytes static/fonts/Lato-Bold.woff2 | Bin 184912 -> 0 bytes static/fonts/Lato-Italic.eot | Bin 268604 -> 0 bytes static/fonts/Lato-Italic.ttf | Bin 639388 -> 0 bytes static/fonts/Lato-Italic.woff | Bin 328412 -> 0 bytes static/fonts/Lato-Italic.woff2 | Bin 195704 -> 0 bytes static/fonts/Lato-Regular.eot | Bin 253461 -> 0 bytes static/fonts/Lato-Regular.ttf | Bin 607720 -> 0 bytes static/fonts/Lato-Regular.woff | Bin 309192 -> 0 bytes static/fonts/Lato-Regular.woff2 | Bin 182708 -> 0 bytes static/fonts/glyphicons-halflings-regular.eot | Bin 20335 -> 0 bytes static/fonts/glyphicons-halflings-regular.svg | 229 ------------------ static/fonts/glyphicons-halflings-regular.ttf | Bin 41280 -> 0 bytes .../fonts/glyphicons-halflings-regular.woff | Bin 23320 -> 0 bytes static/js/webfont.js | 45 ---- 26 files changed, 101 insertions(+), 340 deletions(-) create mode 100644 _src/styles/_lato.scss delete mode 100644 static/css/_Lato.scss delete mode 100644 static/css/style.scss delete mode 100644 static/fonts/Lato-Bold.eot delete mode 100644 static/fonts/Lato-Bold.ttf delete mode 100644 static/fonts/Lato-Bold.woff delete mode 100644 static/fonts/Lato-Bold.woff2 delete mode 100644 static/fonts/Lato-Italic.eot delete mode 100644 static/fonts/Lato-Italic.ttf delete mode 100644 static/fonts/Lato-Italic.woff delete mode 100644 static/fonts/Lato-Italic.woff2 delete mode 100644 static/fonts/Lato-Regular.eot delete mode 100644 static/fonts/Lato-Regular.ttf delete mode 100644 static/fonts/Lato-Regular.woff delete mode 100644 static/fonts/Lato-Regular.woff2 delete mode 100755 static/fonts/glyphicons-halflings-regular.eot delete mode 100755 static/fonts/glyphicons-halflings-regular.svg delete mode 100755 static/fonts/glyphicons-halflings-regular.ttf delete mode 100755 static/fonts/glyphicons-halflings-regular.woff delete mode 100644 static/js/webfont.js diff --git a/_includes/footer.html b/_includes/footer.html index 57d1b24..9aaa466 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -56,12 +56,4 @@ - - {% fa_svg_generate %} diff --git a/_includes/head.html b/_includes/head.html index bcb58c7..4171ddd 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -30,8 +30,6 @@ {{ page_title }} {% unless include.nostyle %} - - {% include vite_script.html %} {% if page.legacy %}