HEXO设置

本文最后更新于:2022年6月26日 晚上

1.背景设置

1
https://blog.csdn.net/weixin_43828250/article/details/114379300

2.图片插入的包

1
2
3
4
npm install hexo-image-link --save
npm uninstall hexo-renderer-marker --save #卸载 marked
npm install hexo-renderer-markdown-it --save #安装markdown-it
https://blog.csdn.net/rentonhe/article/details/123666769

或者直接使用

1
{% asset_img example.png This is an example image %} 
+ example.jpg放在同目录下同名资源文件夹中 + 见HEXO基本操作

3.设置Padding、Margin等

  • 在浏览器中查看Layout和对应的代码块
  • 到CSS文件中找

4.关于本地端口占用

1
2
3
Error: listen EADDRINUSE: address already in use :::4000
sudo lsof -i:端口号
sudo kill -9 pid

HEXO设置
https://anonymouslosty.ink/2022/06/26/Hexo设置/
作者
Ling yi
发布于
2022年6月26日
更新于
2022年6月26日
许可协议