Hexo + GitHub + Cloudflare Pages + AnZhiYu主题 完整搭建使用教程前言经过一番折腾,终于搭建好了个人静态博客,整体技术栈选择 Hexo静态博客框架 + GitHub源码托管 + Cloudflare Pages自动部署 + AnZhiYu主题。这套方案全程免费、无需服务器、自带全球CDN加速,搭配AnZhiYu简约精致的主题,写作、展示体验都很不错。本篇记录完整搭建流程与日常使用方法,既是第一篇博客,也当作自己的建站备忘录。
一、技术栈简单介绍
Hexo:基于Node.js的静态博客框架,使用Markdown撰写文章,本地编译生成HTML静态文件,无后端数据库,轻量化、访问速度快;
GitHub:存放Hexo博客完整源码,作为代码仓库管理文章、主题、配置文件;
Cloudflare Pages:绑定GitHub仓库实现代码提交后自动构建部署,提供免费SSL证书、全球CDN,优化国内外访问体验;
AnZhiYu:一款适配Hexo的轻量化简约主题,界面清爽,配置灵活,支持暗黑模式、侧边栏、友链、相册、评论等常用拓展功能。
二、前期本地环境依赖搭建H ...
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

