base on GatsbyJS ~
clone gatsbyblog
到开发目录:
git clone --.git
cd gatsbyblog
yarn
# 进行开发调试
yarn run dev
部署时候,如果需要增加prefix
,可以如下修改:
// gatsby-config.js
module.exports = {
// Note: it must *not* have a trailing slash.
pathPrefix: `/blog`,
};
// package.json
"build": "gatsby build --prefix-paths",
修改以后内部的链接都会以此为依据改变。运行根目录deploy.sh
构建至至docs
目录,默认情况下会以时间作为commit
内容。
# 内部暂时写死了.git,可以.git/config中修改
./deploy.sh
- tags中是后续的属性名,用英文
- [ ]
deploy.sh
运行时,增加交互式commit