使用css文件自定义hexo
注意编码!
这是最不易发现的错误,因为微软大战代码 (doge) 不会提示。
在 VScode 中 css 文件右下角,你会发现 UTF-8 编码,
但是,我在用 css 时不是,而是 Unicode!!!
导致我近 4 个小时的找 BUG。
甚至一度怀疑是 _config.butterfly.yml 中的如下代码出错:
这很悲剧,只能说,经验+1
# Insert the code to head (before '</head>' tag) and the bottom (before '</body>' tag)
inject:
head:
- <link rel="stylesheet" href="/css/custom.css">
bottom:
# - <script src="xxxx"></script>
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 MondayHangの小窝!


