gpt4 book ai didi

github-pages - 为什么我的 hugo 网站没有建立在 github pages 上?

转载 作者:行者123 更新时间:2023-12-05 04:54:44 25 4
gpt4 key购买 nike

所以我的 hugo 站点在本地主机上工作,在 github 页面上不工作。

我的仓库位于: https://github.com/ba789/ba789.github.io

最佳答案

您可以按照 Hugo 文档“Host on GitHub”进行操作,但您需要两个不同的存储库:

As mentioned in the GitHub Pages documentation, you can host a user/organization page in addition to project pages.
Here are the key differences in GitHub Pages websites for Users and Organizations:

  • You must use a <USERNAME>.github.io to host your generated content
  • Content from the main branch will be used to publish your GitHub Pages site

This is a much simpler setup as your Hugo files and generated content are published into two different repositories.

关于github-pages - 为什么我的 hugo 网站没有建立在 github pages 上?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65648022/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com