iOSByte

CYRCOM

Discover the fun side of iOS with iOSByte. Your friendly space for exploring cool apps, hidden features, and everything delightful in the Apple ecosystem. Join the byte-sized journey through the fascinating world of iOS, tailored for enthusiasts like you!

GET IN TOUCH

A long way

hexo安装

安装 Hexo

所有必备的应用程序安装完成后,即可使用 npm 安装 Hexo。


1
npm install -g hexo-cli

安装 Hexo 完成后,请执行下列命令,Hexo 将会在指定文件夹中新建所需要的文件。

1
2
3
hexo init <folder>
cd <folder>
npm install

文件结构

1
2
3
4
5
6
7
├── _config.yml
├── package.json
├── scaffolds
├── source
| ├── _drafts
| └── _posts
└── themes

1
2
hexo new page —path about/me ”About me“
hexo new page —path about/me

1
2
3
4
5
6
cd blog  #进入blog目录
hexo cl #清理缓存
hexo g #生成网站文件
hexo s #本地测试代码,Ctrl+c停止本地映射
hexo d #推送本地代码到github
http://localhost:4000

补充

1
npm install hexo-deployer-git —save