Hugo+Github Pages+PaperMod个人博客搭建

本文用于参考其他教程,给出完整步骤完整复现,细节省略。 [TOC] 安装 安装hugo 创建GitHub Page仓库,用于展示站点内容 创建blog源文件托管私有仓库 创建站点 1#a.创建站点 2hugo new site blog_source 3 4#b.下载主题 5git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod 6git submodule update --init --recursive 7git submodule update --remote --merge 8 9#c.修改hugo.toml指定主题 10theme = ["PaperMod"] 11 12#d.绑定远程仓库提交代码 13git init 14git remote add origin git@github.com:lzcook/blog_source.git 15git checkout -b main 16git add . 17git commit -m 'init' 18git push --set-upstream origin main -f 自定义站点内容 参考教程 修改hugo.toml 注意原文中是yml最好转换下,主要修改网页图标、菜单、标题等内容 图标维护为在static目录下 ...

四月 25, 2025 · 3 分钟 · 1061 字 · Me