修复less升级到4.0+版本导致的页面异常

背景

顺shou手jian升级了下博客的Hexo版本和依赖的npm包,重新渲染了一遍博客发现页面元素都错位了。看来是某个依赖包有breaking-changes。

1
2
3
4
5
6
7
8
9
10
11
12
13
PS > npm-check-updates -u
Upgrading C:\Users\rayle\OneDrive\桌面\AxisRay.github.io\package.json
[====================] 16/16 100%

hexo ^5.4.0 → ^6.0.0
hexo-generator-json-content ^4.1.6 → ^4.2.3
hexo-renderer-ejs ^1.0.0 → ^2.0.0
hexo-renderer-less ^2.0.2 → ^4.0.0
hexo-renderer-marked ^4.1.0 → ^5.0.0
hexo-renderer-stylus ^2.0.0 → ^2.0.1
hexo-server ^2.0.0 → ^3.0.0

Run npm install to install new versions.