Open kevinten10 opened 3 years ago
在github创建项目时,使用模板
clone自己创建的项目
git submodule update --init --recursive
npm install -D --save autoprefixer npm install -D --save postcss-cli
hugo server
修改config.toml文件
config.toml
// [参考文档3] 使用/docs渲染目录 publishDir = "docs" // [参考文档3] 指向github pages提供的url baseURL = "https://haiteng-wang.github.io/"
hugo
主要是:
/docs
访问github pages提供的url
选型
步骤
1. 安装hugo-extended
2. 使用docsy-example作为模板
在github创建项目时,使用模板
3. clone到本地
clone自己创建的项目
4. 安装submodule依赖
5. 安装npm依赖
6. 本地渲染校验
7. 修改配置文件
修改
config.toml
文件8. 生成博客页面
9. 提交代码到github
主要是:
config.toml
的修改/docs
目录10. 访问页面
访问github pages提供的url
参考文档