一键部署:1234567891011121314151617181920npm install hexo-deployer-git --savegit config --global user.name "Uneac1"git config --global user.email "1006849568@qq.com"npm installeval $(ssh-agent -s)ssh-add E:/yil/yy130git initgit add .git remote add origin git@github.com:Uneac1/repo.githexo cleanhexo generategit commit -m "RGo1"
本地部署或上传git:
刷新 Hexo:
123hexo cleanhexo ghexo s
生成静态文件并部署:
123hexo cleanhexo generatehexo deploy
纳于大麓,烈风雷雨弗迷
大致意思是尧为了考验舜,将舜置于山林之中,在烈风雷雨之中舜也没有迷失方向。
大一时看《毛泽东传》,读到当年伟人在湖南读书时期,曾冒着风雨,进入岳麓山,就是为了体验“纳于大麓,烈风雷雨弗迷”的感觉。
当时读到这里时,极大的被青年时期伟人的激情豪迈所震撼,同时也拿这句提醒自己,人生无论风雨,万不能迷失方向,误入歧途。
创建 Hexo 项目
请在命令行中进入到你想创建项目的目录(例如 E:\y1y\),然后执行以下命令:
12hexo init .hexo install
修改 _config.yml
打开 Hexo 项目的 _config.yml 文件,进行以下配置:
12345678910111213141516171819# Sitetitle: Uneac1subtitle: ''description: ''keywords:author: Uneac1language: zh-CNtimezone: 'Asia/Shanghai'# URLurl: https://y130.icu# ... existing code ...# Deploymentdeploy: type: git repo: git@github.com:UNEAC1/UNEAC1.github.io.git branch: main
安装 hexo-deployer-git 插件
在命令行中执行以下命令安装部署插件:
12cd e:/y1y/x ...
title: 测试文章2025-05-27 06:00:00tags: - 测试 - Hexocategories: - 开发这是一个测试文章欢迎来到我的 Hexo 博客!这篇文章主要用于测试 Hexo 的文章发布功能。以下是一些常见的 Markdown 语法示例:
1. 加粗和斜体
加粗文本 使用 **加粗** 或 __加粗__。
斜体文本 使用 *斜体* 或 _斜体_。
2. 无序列表
项目一
项目二
项目三
3. 有序列表
第一项
第二项
第三项
4. 图片这是一个图片示例:
5. 链接点击 Hexo 官方网站 访问更多信息。
6. 代码块这是一个代码块示例:
1234567891011121314```yamlhighlight: enable: true line_number: false tab_replace: '' auto_detect: true prune_html: false### Deploy to remote sites``` bash$ hexo de ...
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment