Hugo 指北

本地安装 1 2 3 4 5 # 新建hugo站点 hugo new site <your-blob> # 添加主题 git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod 新建文章 1 hugo new <post-path> 本地部署 1 hugo server -D Github Action 新建两个repository: Blob-Source: 私有,博客源码 xxx.github.io: 公开,博客页面 添加个人访问令牌作为TOKEN存储库中调用的Secret 在 Settings -> Developer Settings -> Personal access tokens (classic),注意分配权限为 repo, workflow 在 Blob-Source 中...

2023-07-30 · 1 分钟 · 227 字 · Eveneko