2017-05-13 26 views
1

因此,我设法使用Hugo框架和After-Dark主题(https://themes.gohugo.io/after-dark/)创建了一个静态网页。我上传我的网站我的仓库(https://github.com/Lord-Left/Lord-Left.github.io),但是当我尝试建立的网站,我收到以下错误:使用.gitmodules将我的Hugo站点放到github页面上存在问题

Your site is having problems building: The submodule public was not properly initialized with a .gitmodules file. For more information, see https://help.github.com/articles/page-build-failed-missing-submodule/ .

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

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

回答

3

在你.gitmodules,你说

[submodule "after-dark"] 
path = after-dark 
url = https://github.com/comfusion/after-dark 

虽然我下面的作品:

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

看起来你只是缺少themes/部分,将正确地指向一个子文件夹。

相关问题