# 1.hexo 官方教程
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.
# Create a new post
1 | hexo new "My New Post" |
More info: Writing
# Run server
1 | hexo server |
More info: Server
# Generate static files
1 | hexo generate |
More info: Generating
# Deploy to remote sites
1 | hexo deploy |
More info: Deployment
# 2. 参考博客
个人博客搭建完整版笔记 | pitt1997 = = 真正的大师永远都怀着一颗学徒的心
早教级别教你使用 Hexo 和 GitHub Pages 搭建属于自己的静态博客 - 搭建博客 - 前端设计 | MyBlog = MqyGalaxy | Blog = 爱好 ACG 的温馨小窝 (moeqy.com)
Step.3 界面显示 - Theme Shoka Documentation - 二进制杂谈 - 计算机科学 | Yume Shoka = 優萌初華 = 有夢書架 (lostyu.me)
# 3.Shoka 的一些配置和说明
我们已经完成 Hexo 默认安装以及部署,现在我们使用其他主题加载我们的个人博客。
Shoka 主题相关链接如下。
1 |
|
# 4. 发布博客
写一篇文章,步骤参考
# 创建文章
其中 title 为文章的标题。
1 | hexo new "title" |
执行完成后 hexo 会根据目录下 scaffolds/post.md,在 source/_posts 文件夹下创建一个名为 title.md 的文件。
1 | --- title: hello-world |
接下来就可以正式开始写文章了。
# 部署文章
1 | hexo g -c |
执行完成之后再次访问就可以看到内容了~