hexo next 主题字体图标失效(丢失)

hexo next 字体图标都不显示了, 报错如下:

localhost/:1 Refused to apply style from 'http://localhost:4000/lib/font-awesome/css/font-awesome.min.css?v=4.6.2' 
because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

通过一系列的尝试,找到了解决办法。如下:

  1. blogl\themes\next6\layout\_partials\head\head.siwg中搜索font如图:
    重点看77行的文件路径去对应得地方看看有没有该字体文件,如果没有就去下载一份改名放进来即可。下载地址点击跳转
    在这里插入图片描述
    以上都做完以后打开 git bash
  • 首先清理一下缓存 hexo clean
  • 然后运行hexo s即可

猜你喜欢

转载自blog.csdn.net/Mrceel/article/details/86061207