# 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

命令行提示符 command:("[root@localhost] $":1,9-10||"[admin@remotehost] #":4-6)
1
hexo new "My New Post"

More info: Writing

# Run server

命令行提示符 command:("[root@localhost] $":1,9-10||"[admin@remotehost] #":4-6)
1
hexo server

More info: Server

# Generate static files

命令行提示符 command:("[root@localhost] $":1,9-10||"[admin@remotehost] #":4-6)
1
hexo generate

More info: Generating

# Deploy to remote sites

命令行提示符 command:("[root@localhost] $":1,9-10||"[admin@remotehost] #":4-6)
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
2
3
4
5
6

主题主页:https://shoka.lostyu.me/
文档说明:https://shoka.lostyu.me/computer-science/note/theme-shoka-doc/
基本配置: https://shoka.lostyu.me/computer-science/note/theme-shoka-doc/config/
页面配置: https://shoka.lostyu.me/computer-science/note/theme-shoka-doc/display/
依赖插件: https://shoka.lostyu.me/computer-science/note/theme-shoka-doc/dependents/

# 4. 发布博客

写一篇文章,步骤参考

# 创建文章

其中 title 为文章的标题。

命令行提示符 command:("[root@localhost] $":1,9-10||"[admin@remotehost] #":4-6)
1
hexo new "title" 

执行完成后 hexo 会根据目录下 scaffolds/post.md,在 source/_posts 文件夹下创建一个名为 title.md 的文件。

1
2
3
 --- title: hello-world
date: 2023-11-23 01:03:24
tags: --- balabala.....

接下来就可以正式开始写文章了。

# 部署文章

命令行提示符 command:("[root@localhost] $":1,9-10||"[admin@remotehost] #":4-6)
1
2
3
hexo g -c
hexo s
hexo d

执行完成之后再次访问就可以看到内容了~

更新于 阅读次数

请我喝[茶]~( ̄▽ ̄)~*

4riH04X 微信支付

微信支付