文章目錄
  1. 1. 其他电脑上使用
  2. 2. 引用链接

瞎折腾,在github上用hexo管理博客,简单记录一下。

需要安装nodejs git以及

npm install -g hexo

在目录里

hexo init
npm install
hexo generate
hexo server

创建github工厂”username.github.io”

编辑_config.yml

# Site
title: MarkDown使用
subtitle: 学习
description: 学习 笔记 管理
author: Dihihi
language: zh_CN
timezone: Asia/Shanghai

# Extensions
theme: jacman
stylus: 
    compress: true

# Deployment
deploy:
type: git
repository: git@github.com:dihihi/dihihi.github.io.git
branch: master

没有部署器的话,安装
npm install hexo-deployer-git –save

hexo generate == hexo g
hexo deploy == hexo d

hexo server == hexo s
hexo new == hexo n
hexo d -g #生成部署

更换主题时,修改_config.yml,以及

rm -rf public
hexo clean

其他电脑上使用

主题的话可以fork一个然后自定义修改

git remote add mine xxx
git push -u mine master
git clone git@github.com:dihihi/jacman.git themes/jacman

备份_config.xml
source目录可以创建一个仓库保存在github上

引用链接

文章目錄
  1. 1. 其他电脑上使用
  2. 2. 引用链接