Github page

Github pages

git 代理

$ git config --global http.proxy http://proxy.xxxx.com:8080

个人页

教程 https://pages.github.com/
PS 每个github账户都有一个个人页地址 username.github.io
对应 username.github.io 的repo
在这个repo里面放你的静态页就OK了

Hexo

这里推荐hexo博客
安装

npm install -g hexo

因为后面要用到hexo 命令 所以全局安装
进入到username.github.io 仓库
初始化目录

hexo init

生成HTML文件(都放在了 Public中)

hexo generate

创建服务器预览

hexo server

当然index.js文件应该放在 username.github.io 根目录下 所以最好copy一下public文件到username.github.io中

主题

_config.yml 文件中指定主题

theme: modernist
原文地址:https://www.cnblogs.com/cart55free99/p/4637495.html