1

所以我设法使用 Hugo 框架和 After-Dark 主题(https://after-dark.habd.as)创建了一个静态网页。我将我的站点上传到我的存储库 ( https://github.com/Lord-Left/Lord-Left.github.io ) 但是当我尝试构建站点时,我收到以下错误:

您的站点在构建时遇到问题:子模块 public 未使用 .gitmodules 文件正确初始化。有关更多信息,请参阅 https://help.github.com/articles/page-build-failed-missing-submodule/

这是我的子模块文件的链接(位于根目录中)。我是通过修补来创建它的,对吗?

https://github.com/Lord-Left/Lord-Left.github.io/blob/master/.gitmodules

4

1 回答 1

4

在你里面.gitmodules,你说

[submodule "after-dark"]
path = after-dark
url = https://git.habd.as/comfusion/after-dark

虽然以下对我有用:

[submodule "themes/beautifulhugo"]
path = themes/beautifulhugo
url = https://github.com/halogenica/beautifulhugo

看起来您只是缺少themes/正确指向子文件夹的部分。

于 2017-05-13T20:23:40.587 回答