初始化博客

安装node.js
https://nodejs.org/en/
下载最新版安装
安装配置hexo
$ npm install -g hexo-cli
$ hexo

参考:http://www.jianshu.com/p/e99ed60390a8

初始化博客

hexo init wywdev
cd wywdev
npm install
修改_config.yml文件
title: devwyw
subtitle: devwyw
description: devwyw
author: devwyw
language: zh-CN
timezone: Asia/Shanghai


url: https://devwyw.github.io/


theme: tranquilpeak
post_assert_folder: true

deploy:
type: git
repo: https://github.com/devwyw/devwyw.github.io.git
branch: master

参考 https://github.com/LouisBarranqueiro/hexo-theme-tranquilpeak/blob/master/docs/developer.md#bower-dependencies

替换成tranquilpeak皮肤
git clone https://github.com/LouisBarranqueiro/hexo-theme-tranquilpeak.git


cd /Users/zerotech/web/wywdev/themes/tranquilpeak

theme: tranquilpeak
post_assert_folder: true

npm install hexo-cli -g

npm install grunt-cli -g


npm install bower -g


npm install


bower install

grunt build
发布
cd /Users/zerotech/web/wywdev

hexo server

http://localhost:4000/

hexo generate


hexo deploy


npm install hexo-deployer-git --save

hexo deploy
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容