1 | title: |
文章作者: Li Zhenghao
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Li Zhenghao🚴!
相关推荐

2025-02-19
hexo deploy出现warning in the working copy of 'xxx' LF will be replaced by CRLF the next time Git touches it
1234warning: in the working copy of 'tags/画图/index.html', LF will be replaced by CRLF the next time Git touches itwarning: in the working copy of 'tags/矩阵分解/index.html', LF will be replaced by CRLF the next time Git touches itwarning: in the working copy of 'tags/离散卷积/index.html', LF will be replaced by CRLF the next time Git touches itwarning: in the working copy of 'tags/统计/index.html', LF will be replaced by CRLF the next time Git touches...

2025-02-14
hexo图片路径解决方案
前言:由于我大部分时间使用 typora进行写作。在 typora中,我使用的是如下文件结构: 1234567BLOG/├── imgs/ ├── article-1/ ├── img1.png ├── img2.png├── article-1.md├── artical-2.md 此时markdown中的图片位置为: 1 我希望实现的功能是: 我不希望使用图床,因为这会改变我在本地时的写作习惯,每次打开typora都要加载一堆图片。 我不希望对markdown中的图片位置进行大量的改动,这会增加很多工作量。 此外,由于我的博客目录和我平时的写作目录是分开的,我不需要在博客目录下对markdown的图片进行预览。 因此,大道至简,直接使用默认的source作为根目录,在其下面创建imgs文件夹,形成如下文件结构: 12345678BLOG/source/├── imgs/ ├── article-1 ├── img1.png ├── img2.png├──_posts/ ├──...

2025-02-19
服务器部署hexo博客
step1. 安装hexo 安装nodejs git Nginx hexo Linux 12345678910# 更新系统包sudo apt update && sudo apt upgrade -y# 安装nodejscurl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -sudo apt install -y nodejs# 验证安装node -vnpm -v# 安装hexosudo npm install -g hexo-cli Windows windows不用安装Nginx 访问 Node.js 官网 下载Node.js 12345# 验证安装node -vnpm -v# 安装hexonpm install -g hexo-cli 初始化hexo, 安装butterfly主题 123456# 创建hexo目录mkdir BLOG && cd BLOG# 初始化hexohexo init# 安装butterfly主题git clone -b master...

2023-12-19
Hexo+github pages部署个人博客
Hexo+github pages部署个人博客 参考: Hexo博客搭建基础教程(一) | Fomalhaut🥝 Hexo博客搭建基础教程(二) | Fomalhaut🥝 Butterfly 安裝文檔(四) 主題配置-2 | Butterfly step1. 安装Node.js和npm 访问 Node.js 官网 下载Node.js 安装完成后,可以在命令行中输入以下命令来验证安装 12node -vnpm -v step2. Hexo的安装与初始化 安装 1npm install -g hexo-cli 初始化 12cd BlogRoothexo init 安装依赖 1npm install 在本地运行Hexo服务器 1hexo server step3. 部署到github pages上 创建一个github仓库,名称必须为<username>.github.io 创建ssh密钥,一路回车 1ssh-keygen -t ed25519 -C...
公告
This is my Blog