搭建Hugo站使用netlify动部署网站 彭宅波 收录于 文档 2022-09-29 约 127 字 预计阅读 1 分钟 次阅读 目录 新见一个网站目录 安装主题 初始化子模块 忽略public 复制编辑主题 创建你的第一篇文章 本地预览网站 新建GitHub库 上传GitHub并 新见一个网站目录 1 hugo new site blog 安装主题 1 git clone https://github.com/dillonzq/LoveIt.git themes/LoveIt 初始化子模块 1 2 3 4 git init git submodule add https://github.com/dillonzq/LoveIt.git themes/LoveIt 忽略public 1 /public 复制编辑主题 1 cp themes/LoveIt/exampleSite/config.toml 创建你的第一篇文章 1 2 hugo new posts/first_post.md 本地预览网站 1 hugo serve 新建GitHub库 上传GitHub并 1 2 3 git add -A git commit -m "网站搭建" git push -u origin master Please enable JavaScript to view the comments powered by Valine.