Lruihao / hugo-blog

一个前端 CV 程序猿的博客😉
https://lruihao.cn
MIT License
63 stars 8 forks source link

fork到自己仓库之后,如何部署到Github Page上。目前我这边会出现错误。 #108

Closed yuhanglee closed 4 months ago

yuhanglee commented 4 months ago

image

我将您这边的URL统一修改为我自己的仓库,在本地执行 hugo server 是可以通过访问 localhost:1313 查看。但是提交到仓库就不可以了。

期待您这边的回复。

如果不可以fork使用的话,请告知。

Lruihao commented 4 months ago

通过模板创建新的仓库

  1. 点击 Use this template,在 GitHub 上创建你的存储库。

    image
  2. 存储库创建后,克隆

    # 使用你自己的存储库 URL 进行克隆
    git clone --recursive https://github.com/<your_name>/<your_blog_repo>.git
  3. 移除 private 子模块(这个是我的加密内容)

  4. 调整 github actions 中的步骤及相关环境变量设置。

Lruihao commented 4 months ago

这个仓库有很多我本人的内容和定制化,建议通过以下两个模板之一快速开始:

yuhanglee commented 4 months ago

感谢!! 通过看您的文章 部署到Github,已经完成部署了,后续我自己再次修改部分内容。

也是看你这个仓库比较优秀,比较符合我目前的使用。

再次感谢~~