Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 914 Bytes

README.md

File metadata and controls

44 lines (26 loc) · 914 Bytes

Xcoding

专注于xcoding的网站。。。

http://xcoding.tech

本repo只用于提交md文件,发布后的静态文件全部保存在public目录下,这些文件直接上传到ubuntuvim.github.io项目中部署。

如果是首次下载代码则需要先安装nodejs,在通过npm安装hexo

先安装hexo
npm install -g hexo-cli

再cd到项目目录

npm install

本地运行

hexo s --debug

本地访问http://localhost:400

新增博客Markdown文件后都要通过下面的两个命令先编译再推送到github服务器;

生成静态HTML命令如下:

hexo g

得到静态HTML之后直接通过如下命令发布到xcoding.tech。

hexo d

所有的博客存放在source/_posts目录下。执行命令hexo g后这些md文件会转成静态html文件。