webeautiful / hexo-blog-source

hexo, github page, markdown

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hexo-blog-source

REQUIRES

  • nodejs
  • git
  • hexo
  • yarn/npm

Initialize

yarn init blog-name

开发环境搭建

git clone git@github.com:webeautiful/hexo-blog-source.git
yarn install
yarn add hexo-deployer-git # hexo deploy失败时,安装此插件可解决

配置CNAME

  • CNAME文件放在source/目录下
  • _config.yml配置, 如: url: http://www.etuai.com

配置themes

  • 创建themes目录
  • 安装主题git clone https://github.com/iissnan/hexo-theme-next.git themes/next
  • 主题目录, 如: themes/next
  • _config.yml配置, 如: theme: next

启动开发环境

$ hexo s --debug

添加新文章

hexo new [layout] <title>

部署

修改_config.yml配置:

deploy:
  type: git
  repo: git@github.com:webeautiful/webeautiful.github.io.git
  branch: master

部署到Github Page

hexo clean
hexo g
hexo deploy

About

hexo, github page, markdown


Languages

Language:JavaScript 71.2%Language:HTML 28.8%