初始化博客
2017-07-05 本文已影响0人
iOS的Developer
安装node.js
https://nodejs.org/en/
下载最新版安装
安装配置hexo
$ npm install -g hexo-cli
$ hexo
初始化博客
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
替换成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