这个项目是自己用github pages 搭建的一个静态blog。
这个项目共有两个分支:
- master
- master分支部署的Hexo 生成的相关js,html文件。github pages 将master分支上的静态页面在
quinwu.github.io
上显示出来,同时将该域名绑定到自己的独立域名quinwu.org上。 - 由于一些不可描述的原因,某些地区的同学(包括我)访问
quinwu.github.io
的速度会比较慢,因此同样使用了coding.net的pages服务,部署了相同的镜像版本在quinwu.coding.me
上,该域名同样绑定到了quinwu.org上。 - 某些地区的同学访问时,会被定向到
quinwu.coding.me
源,其他地区的同学访问会被定向到quinwu.github.io
源。
- master分支部署的Hexo 生成的相关js,html文件。github pages 将master分支上的静态页面在
- hexo
- hexo分支为本地的一些源文件,记录下本地的一些配置信息跟博文的*.md源文件,保证在其他的电脑上可以无差别的部署。
感谢
#hexo Markdown file
git clone git@github.com:quinwu/quinwu.github.io.git hexo/blog
cd hexo/blog/themes/
#hexo-next themes file
git clone git@github.com:quinwu/hexo-theme-next.git nextclear
安装node.js
安装hexo
npm install -g hexo-cli
npm install hexo --save
hexo -v
hexo init
npm install -- save-dev hexo-util #缺少hexo-util时
npm install
#hexo 常用的生产部署命令
hexo g
hexo s
hexo d
hexo clean
local.sh
本地调试
deploy.sh
部署到github/gitcafe
clone theme-next address:
git clone https://github.com/iissnan/hexo-theme-next themes/next
cp backup_config/_layout.swig /themes/next/layout/_layout.swig
my_avatat.jpg
头像
cp my_avatar.jpg ../themes/next/source/images/
alipay.jpg
支付宝二维码
wechatpay.jpg
微信二维码
cp *pay.jpg ../themes/next/source/images
blog_config.yml
站点配置文件
cp blog_config.yml ../_config.yml
next_config.yml
主题配置文件
cp next_config.yml ../themes/next/_config.yml
marked.js
修改过的js备份文件(markdown 与 latex的 _
\\
语法冲动,修改后markdown 斜体 _text_
*test*
无法解析)不推荐这种方式
cp marked.js ../node_modules/marked/lib
backup_marked.js
原未被修改的js备份文件
cp backup_marked.js ../node_modules/marked/lib/marked.js