欢迎来到我的 Hexo 博客!🎉
这是一篇专门用来测试 Hexo 部署是否正常的文章。如果你在本地看到这篇文章,说明你的 Hexo 环境已经成功运行起来了。
1. Hexo 基本信息
静态博客生成器:Hexo 使用 Node.js,生成纯静态 HTML 文件,速度快、部署简单。
常用命令:
hexo new "文章标题" → 创建新文章
hexo clean → 清理缓存
hexo generate 或 hexo g → 生成静态文件
hexo server 或 hexo s → 本地预览(默认端口 4000)
hexo deploy 或 hexo d → 部署到服务器(GitHub Pages、Vercel、Cloudflare Pages 等)
2. Markdown 语法测试标题与强调粗体 和 斜体,删除线,==高亮==(部分主题支持)。
列表
无序列表项 1
无序列表项 2
子列表
有序列表第一项
有序列表第二项
引用
这是一段引用文字。Hexo + Markdown 写作非常舒服!
代码块// J ...
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
